josantonius / php-skeleton
Generic PHP project skeleton package
Fund package maintenance!
Koriym
Josantonius
Requires
- php: ^5.6 || ^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.3 || ^2.8
- phpmd/phpmd: ^2.6
- phpunit/phpunit: ^5.7 || ^6.0
- squizlabs/php_codesniffer: ^3.0
README
This project was created in order to provide project skeleton to start new PHP project.
Requirements
This project is supported by PHP versions 5.6 or higher and is compatible with HHVM versions 3.0 or higher.
Create project
You'll need Composer.
composer create-project josantonius/php-skeleton {project-path}
Various config files are ready for continuous integration.
- phpunit.xml for phpunit
- phpmd.xml for PHPMD
- phpcs.xml for PHP_CodeSniffer
- .php_cs for php-cs-fixer
- .travis.yml for Travis CI
Composer scripts
tests
composer tests
run phpcs
, phpmd
and phpunit
. Run phpunit
for unit test only.
composer tests
fix
composer fix
run php-cs-fixer
and phpcbf
to fix up the PHP code to follow the coding standards.
composer fix
License
This repository is licensed under the MIT License.
Copyright © 2013, Koriym
Copyright © 2017-2022, Josantonius