symetric / php-cs-fixer-ruleset
Package info
github.com/symetric-productions/php-cs-fixer-ruleset
pkg:composer/symetric/php-cs-fixer-ruleset
v1.2.1
2025-10-22 18:11 UTC
Requires
- php: ^7.4 || ^8.0
- friendsofphp/php-cs-fixer: ^3.89
This package is auto-updated.
Last update: 2026-04-22 19:13:23 UTC
README
Installation
composer require --dev symetric/php-cs-fixer-ruleset
In .php-cs-fixer.dist.php (or equivalent):
<?php declare(strict_types=1); use PhpCsFixer\Config; use PhpCsFixer\Finder; use PhpCsFixer\Runner\Parallel\ParallelConfigFactory; use Symetric\PhpCsFixerRuleset\Ruleset; $finder = (new Finder()) ->in('src') ->notPath([ 'Kernel.php', ]) ; return (new Config()) ->setParallelConfig(ParallelConfigFactory::detect()) ->registerCustomRuleSets([ new Ruleset(), ]) ->setRules([ '@Symetric/Default' => true, ]) ->setRiskyAllowed(true) ->setFinder($finder) ;