Currently there is no canonical way of creating PHP packages for using with Composer or standard folder and files structure for PHP packages however there are good practices.
Our PHP package will assume and provide you the following directory structure:
/bin
/docs
/src
/tests
/.gitattributes
/.gitignore
/CHANGELOG.md
/composer.json
/CONTRIBUTING.md
/LICENSE
/phpunit.xml.dist
/README.md
With Composer creating a new PHP package is as simple as:
$ composer create-project petk/php-skeleton ./new-php-package 'dev-master'
We will use PHPUnit for Test driven development. Check the phpunit.xml.dist
file.