jrmajor / cs
My PHP-CS-Fixer configuration
Installs: 19 442
Dependents: 4
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 1
Requires
- php: 8.2 - 8.3
- friendsofphp/php-cs-fixer: ^3.58
- kubawerlos/php-cs-fixer-custom-fixers: ^3.21
Requires (Dev)
- php-cs-fixer/phpunit-constraint-isidenticalstring: ^1.5
- phpstan/phpstan: ^1.11
- phpstan/phpstan-phpunit: ^1.4
- phpunit/phpunit: ^11.1
This package is auto-updated.
Last update: 2024-10-31 10:50:51 UTC
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
!