Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 968 Bytes

File metadata and controls

48 lines (31 loc) · 968 Bytes

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.

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