phpyh / coding-standard
PHPyh Coding Standard For PHP CS Fixer
Installs: 18 737
Dependents: 18
Suggesters: 0
Security: 0
Stars: 15
Watchers: 1
Forks: 0
Open Issues: 1
Requires
- php: ^8.1
- friendsofphp/php-cs-fixer: ^3.47.1
Requires (Dev)
- ergebnis/composer-normalize: ^2.43.0
- icanhazstring/composer-unused: ^0.8.11
- maglnet/composer-require-checker: ^4.7.1
- rector/rector: ^1.2.4
- vimeo/psalm: ^5.25.0
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;