jrmajor / cs
My PHP-CS-Fixer configuration
v0.8.0
2026-11-09 20:43 UTC
Requires
- php: 8.4 - 8.6
- friendsofphp/php-cs-fixer: ^3.95
- kubawerlos/php-cs-fixer-custom-fixers: ^3.35
Requires (Dev)
- php-cs-fixer/phpunit-constraint-isidenticalstring: ^1.8
- phpstan/phpstan: ^2.3.5
- phpstan/phpstan-phpunit: ^2.1
- phpunit/phpunit: ^13.4
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
My personal PHP-CS-Fixer configuration, used in all of my PHP projects.
Install it via Composer: composer require jrmajor/cs and use Major\CS\config() function in .php-cs-fixer.php:
<?php $finder = PhpCsFixer\Finder::create() ->in(__DIR__) ->notPath('bootstrap/cache') ->notPath('node_modules') ->notPath('storage') ->notName('*.blade.php') ->notName('_ide_helper*.php') ->ignoreVCSIgnored(true); return Major\CS\config($finder, ['overwritten_rule' => false]);
Don't forget to add .php-cs-fixer.cache to .gitignore!