phpyh/coding-standard
PHPyh Coding Standard provides a ready-to-use PHP CS Fixer configuration for consistent formatting across your project. Install via Composer and apply the PhpCsFixerCodingStandard to your .php-cs-fixer.dist.php, with support for overriding rules.
composer require --dev phpyh/coding-standard
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;
How can I help you explore Laravel packages today?