phpyh / coding-standard
PHPyh Coding Standard For PHP CS Fixer
Installs: 40 557
Dependents: 21
Suggesters: 0
Security: 0
Stars: 21
Watchers: 1
Forks: 1
Open Issues: 1
Requires
- php: ^8.3
- friendsofphp/php-cs-fixer: ^3.84.0
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.8.2
README
Installation
composer require --dev phpyh/coding-standard
Usage with PHP CS Fixer
Update your .php-cs-fixer.dist.php
:
<?php use PHPyh\CodingStandard\PhpCsFixerCodingStandard; $finder = PhpCsFixer\Finder::create() ->in(__DIR__.'/src') // ... ; $config = (new PhpCsFixer\Config()) ->setFinder($finder) // ... ; (new PhpCsFixerCodingStandard())->applyTo($config, [ // overriding rules ]); return $config;