instapro / coding-standard
The Instapro Coding Standard
Installs: 9 316
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 6
Forks: 2
Open Issues: 2
Requires
- php: ^8.0
- friendsofphp/php-cs-fixer: ^3.14
Requires (Dev)
- phpunit/phpunit: ^9.6
README
The Instapro Coding Standard is a set of PHP CS Fixer rules that we use in the Instapro projects.
How to use
-
Install the package as a dev requirement
composer require --dev instapro/coding-standard
-
Add/update your
.php-cs-fixer.dist.php
configuration file to load the configuration from the package. Be sure to update the finder configuration to match the files you want to enforce the coding standard for.<?php declare(strict_types=1); use Instapro\CodingStandard\Load; return Load::configuration( PhpCsFixer\Finder::create() ->exclude('Files') ->in([ __DIR__ . '/src', __DIR__ . '/tests', ]) ->name('*.php'), );