This package is no longer maintained. See this statement for more info.
Install dependencies:
composer require --dev friendsofphp/php-cs-fixer eloquent/code-style
Add a .php-cs-fixer.php file:
<?php return Eloquent\CodeStyle\Config::create(__DIR__);
To customize excluded paths, access the existing finder object:
<?php
$config = Eloquent\CodeStyle\Config::create(__DIR__);
$config->getFinder()->exclude([
'artifacts',
'test/fixture',
]);
return $config;
vendor/bin/php-cs-fixer fix