This library is heavily inspired by the bear/qa-tools, koriym/Koriym.PhpSkeleton
To create your project, enter the following command in your console.
composer create-project ysato/php-skeleton <project-path>
You will be asked a few questions to configure the project:
What is the vendor name ?
(MyVendor):Ysato
What is the package name ?
(MyPackage):AwesomePackage
Once installed, the project will automatically be configured so you can run those commands in the root of your application:
composer test
run phpunit
.
composer tests
run phpcs
, phpmd
, phpstan
, psalm
and phpunit
.
composer coverage
builds test coverage report.
composer cs-fix
run phpcbf
to fix up the PHP code to follow the coding standards. (Check only command composer cs
is also available.)