Provides a configuration factory and multiple rule sets for friendsofphp/php-cs-fixer
.
Add repository to composer.json
:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/UksusoFF/php-cs-fixer-config"
}
],
Run
composer require --dev uksusoff/php-cs-fixer-config
Pick one of the rule sets:
Create a configuration file .php_cs
in the root of your project:
<?php
$config = \UksusoFF\PhpCsFixer\Factory::fromRuleSet(new \UksusoFF\PhpCsFixer\RuleSet\Laravel());
$config->getFinder()->in(__DIR__);
return $config;
This project is based on ergebnis/php-cs-fixer-config.