composer require --dev bamarni/composer-bin-plugin elbgoods/ci-test-tools
composer bin php-cs require --dev friendsofphp/php-cs-fixer
vendor/bin/php-cs-test
vendor/bin/php-cs-fix
If you want to adjust the default configuration you can use your composer.json[extra]
section.
{
"extra": {
"php-cs-fixer": {
"finder": {
"include": [],
"exclude": []
}
}
}
}
composer bin php-tlint require --dev tightenco/tlint
vendor/bin/php-tlint-test
You have to create a tlint.json
file on your project root level with the following, and only, content.
{
"preset": "laravel",
"disabled": [
"NoInlineVarDocs",
"NoParensEmptyInstantiations"
]
}
- tool: https://github.com/phpmd/phpmd
- config: configs/phpmd.xml
composer bin php-md require --dev phpmd/phpmd
vendor/bin/php-md-test
composer bin php-insights require --dev nunomaduro/phpinsights
vendor/bin/php-insights-test
composer bin php-mn require --dev povils/phpmnd
vendor/bin/php-mn-test
composer bin php-stan require --dev nunomaduro/larastan
vendor/bin/php-stan-test
You have to create a phpstan.neon.dist
file on your project root level with the following content.
includes:
- ./vendor-bin/php-stan/vendor/nunomaduro/larastan/extension.neon
- ./vendor/elbgoods/ci-test-tools/configs/phpstan.neon.dist
parameters:
paths:
- ./app
- ./config
- ./routes