stickeepaul / php-code-style
Stickee PHP Code Style
Installs: 13
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 1
pkg:composer/stickeepaul/php-code-style
Requires
- friendsofphp/php-cs-fixer: ^2.14
- phpro/grumphp: ^0.15.0
- phpstan/phpstan: ^0.11.1
- sensiolabs/security-checker: ^5.0
This package is auto-updated.
Last update: 2025-10-09 03:06:28 UTC
README
This repository contains config files for tools for PHP projects.
Usage
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
GrumPHP can be ran using:
vendor/bin/grumphp <COMMAND> -c vendor/stickee/php-code-style/dist/grumphp.yml
Extending GrumPHP
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
PHPStan can be ran using:
vendor/bin/phpstan <COMMAND> -c vendor/stickee/php-code-style/dist/phpstan.neon
PHPCS
PHP-CS-Fixer can be ran using:
vendor/bin/phpcs <COMMAND> --config vendor/stickee/php-code-style/dist/.phpcs