stickee / php-code-style
Stickee PHP Code Style
Installs: 67
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/stickee/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
- stickee/grumphp-tasks: ^1.1
This package is auto-updated.
Last update: 2023-02-17 13:55:28 UTC
README
This repo has been replaced by Canary.
Stickee PHP Code Style
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.
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
Husky
To allow husky to automatically run the above tasks, copy the .huskyrc
and .lintstagedrc
file into the root of your project. Using stickee-control
will do this automatically for you.