Binalogue - welovedesign&welovetodesign
Opinionated styling rules for PHP-CS-Fixer.
Because we haven't submitted the package to Packagist, you have to tell Composer where to find the package, using the repositories block:
"repositories": [ { "type": "vcs", "url": "https://github.com/binalogue/php-cs-fixer-config" } ]
Then:
composer require binalogue/php-cs-fixer-config:dev-master --dev
In your .php_cs.dist config file:
<?php $finder = PhpCsFixer\Finder::create() ->in(__DIR__.'/src') ->in(__DIR__.'/tests'); return Binalogue\styles($finder);
For Laravel projects:
<?php $finder = PhpCsFixer\Finder::create() ->in(__DIR__) ->exclude(['bootstrap', 'storage', 'vendor']) ->name('*.php') ->notName('*.blade.php') ->ignoreDotFiles(true) ->ignoreVCS(true); return Binalogue\styles($finder);
- Composer - Dependency Manager for PHP