Making development of composer libraries easy with this cloneable template which includes:



The following command will clone this template and place it in the my-library directory

composer create-project tfarla/composer-template my-library

Composer’s [create-project]( will also install all dependencies in this template:

Installing tfarla/composer-template (dev-master d3249c7ffef021c39e33a4323be4d70899d4d28b)
- Installing tfarla/composer-template (dev-master master): Cloning master from cache
Created project in my-library
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Generating autoload files
ocramius/package-versions:  Generating version class...
ocramius/package-versions: ...done generating version class

Once the download is done you will get the choice to remove the .git directory which you should do if you want your own repository.

Do you want to remove the existing VCS (.git, .svn..) history? [Y,n]? y


In order to use this template you’ll need to change a few things:

  • Change the content in this README file to reflect your library
  • Change the content in the docs/ directory to reflect your library
  • Setup travis-ci (should be plug & play)
  • Setup readthedocs (should be plug & play)
  • Setup coveralls (should be plug & play)
  • Pick a license (MIT is good enough for most open source project, but you might want to look at the other options)