suin / php-cs-fixer-rules
A Rule set for PHP-CS-Fixer mainly targeting PHP 7.1 or higher.
2.2.1
2020-12-04 01:55 UTC
Requires
- php: >=7.1
Conflicts
- friendsofphp/php-cs-fixer: <2.13
README
A Rule set for PHP-CS-Fixer mainly targeting PHP 7.1 or higher. See Rules.php for the rules detail.
Installation via Composer
$ composer require --dev suin/php-cs-fixer-rules
Setting up .php_cs.dist
Create .php_cs.dist in your project:
<?php return PhpCsFixer\Config::create() ->setRiskyAllowed(true) ->setRules(Suin\PhpCsFixer\Rules::create([ // If you want to overwrite default rules // add rules here. 'declare_strict_types' => false, ])) ->setFinder(PhpCsFixer\Finder::create() ->exclude('vendor') ->in(__DIR__) );
Changelog
Please see CHANGELOG for more details.
Contributing
Send issue or pull-request to main repository.