piotzkhider / php-skeleton
Generic php project skeleton package
Installs: 29
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/piotzkhider/php-skeleton
Requires
- php: ^7.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.15
- phpmd/phpmd: ^2.7
- phpstan/phpstan: ^0.11.15
- phpunit/phpunit: ^8.0
- squizlabs/php_codesniffer: ^3.4
- vimeo/psalm: ^3.4
README
This library is heavily inspired by the bear/qa-tools, koriym/Koriym.PhpSkeleton
A standard PHP project skeleton
Create Project
To create your project, enter the following command in your console.
composer create-project piotzkhider/php-skeleton <project-path>
You will be asked a few questions to configure the project:
What is the vendor name ?
(MyVendor):Piotzkhider
What is the package name ?
(MyPackage):AwesomePackage
Composer Commands
Once installed, the project will automatically be configured so you can run those commands in the root of your application:
test
composer test run phpunit.
tests
composer tests run phpcs, php-cs-fixer, phpstan, psalm and phpunit.
coverage
composer coverage builds test coverage report.
cs-fix
composer cs-fix run php-cs-fixer and phpcbf to fix up the PHP code to follow the coding standards. (Check only command composer cs is also available.)