h1r0-2525 / php-cs-fixer-config
PHP-CS-Fixer to PHP7 and Laravel5
Installs: 169
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/h1r0-2525/php-cs-fixer-config
Requires
- php: >=7.2
- friendsofphp/php-cs-fixer: ^2.16
Requires (Dev)
- phpunit/phpunit: ^8.4
This package is auto-updated.
Last update: 2025-12-08 17:00:33 UTC
README
Installation
$ composer require --dev h1r0-2525/php-cs-fixer-config
Configuration
// .php_cs.dist <?php use H1r0\CS\Config\Rule; use H1r0\CS\Finder\Finder; return Rule::create() ->setFinder(Finder::create()->in(__DIR__));
Overwrite rules and finder
// .php_cs.dist <?php use H1r0\CS\Config\Rule; use H1r0\CS\Finder\Finder; return Rule::create([ // add your rules 'combine_consecutive_unsets' => false, ]) ->setFinder(Finder::create() ->exclude([ // add exclude path 'vender', ]) ->in(__DIR__) );
Contributions
Before submitting a pull request, you must run test.
Run test
$ composer test tests/