eloquent / code-style
The Eloquent code style definition for PHP.
Installs: 16 840
Dependents: 11
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
Requires (Dev)
- phpstan/phpstan: ^1
README
No longer maintained
This package is no longer maintained. See this statement for more info.
Eloquent PHP code style definition
Installation
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;
Usage
vendor/bin/php-cs-fixer fix