tfarla/composer-template

A template for creating composer libraries

0.1.1 2018-04-02 08:27 UTC

README

Packagist Travis Coveralls github Read the Docs license

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

Requirements

Installation

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

Usage

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 https://choosealicense.com/ (MIT is good enough for most open source project, but you might want to look at the other options)

Documentation

While this README should be enough to get started. Please read the full documentation for more details.

Contributing

Thanks for reading this far into the README and considering contributing to this project. If you have any questions or suggestions feel free to create an issue.

If you want to modify the code then please follow these steps:

  1. Fork it (https://github.com/TFarla/composer-template)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request