Basic project structure for a PSR-0 compliant PHP application. Already setup with an example class and test case to show you the way.
-
This project manages its dependencies with Composer. Start by installing Composer:
curl -s http://getcomposer.org/installer | php
-
Create project skeleton:
php composer.phar create-project johnkary/php-skeleton
-
Start developing your own project by creating new files in
src
and searching for libraries on Packagist
To execute this project's test suite:
-
Optionally copy and configure
phpunit.xml.dist
for your project's environment:cp phpunit.xml.dist phpunit.xml vi phpunit.xml
-
Run the test suite:
./vendor/bin/phpunit
-
Ensure Xdebug is installed and configured.
-
Execute PHPUnit:
./vendor/bin/phpunit --coverage-html=coverage/