stickeepaul/php-code-style

There is no license information available for the latest version (0.0.1) of this package.

Stickee PHP Code Style

0.0.1 2019-04-11 16:14 UTC

This package is auto-updated.

Last update: 2024-11-09 01:10:42 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