This repository contains config files for tools for PHP projects.
First install this package:
composer require --dev stickee/php-code-style
and then pass the -c
/--c
/--config
option to the tool you wish to use and use vendor/stickee/php-code-style/dist/<config>.yml
as the path.
GrumPHP can be ran using:
vendor/bin/grumphp <COMMAND> -c vendor/stickee/php-code-style/dist/grumphp.yml
If you need to add extra parameters to GrumPHP you can import this package's grumphp.yml
config file and then extend it:
imports:
- { resource: vendor/stickee/php-code-style/dist/grumphp.yml }
parameters:
...
PHPStan can be ran using:
vendor/bin/phpstan <COMMAND> -c vendor/stickee/php-code-style/dist/phpstan.neon
PHP-CS-Fixer can be ran using:
vendor/bin/phpcs <COMMAND> --config vendor/stickee/php-code-style/dist/.phpcs