A skeleton for PHP library projects., (*1)
Setup your project
Copy over all files - except this readme - to your new PHP project and modify
the following parts to your needs:, (*2)
- composer.json:
- build.xml
- phpcs-ruleset.xml
- [ruleset name][PHPCS ruleset name]
- .travis.yml
Run composer install., (*3)
Put your classes in the src directory, and PHPUnit tests in the tests directory.
Follow the PSR-4 conventions for autoloading and PSR-2 conventions for coding
style., (*4)
Run a full test (lint check, coding standards check and unit tests) with
./vendor/bin/phing test., (*5)
In order to automatically run a full test when committing to git, install the
included git hooks hook with ./vendor/bin/phing githooks., (*6)
Setup third-party services
Register your project on:, (*7)