A set of php configurations for different cool utils such as php-cs-fixer
.
$ composer require --dev dalee/php-config
To make it work you have to create .php_cs.dist
with Dalee\CodeStyle\Config
:
return Dalee\CodeStyle\Config::create()
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
);
To extend the ruleset create your own ruleset.xml
:
<?xml version="1.0"?>
<ruleset name="MyStandard">
<description>Coding standard based on dalee/php-config with some additions.</description>
<file>./src</file>
<rule ref="./vendor/dalee/php-config/ruleset.xml" />
</ruleset>
PHP 5.6
forphp-cs-fixer