This package contains basic PHP-CS-Fixer configuration for use in CPS projects. All configuration options are shipped as rulesets targeting different use cases.
composer require --dev cpsit/php-cs-fixer-config
Configure PHP-CS-Fixer in your .php-cs-fixer.php
file:
use CPSIT\PhpCsFixerConfig;
use PhpCsFixer\Config;
// Create config object and configure Finder
$config = new Config();
$config->getFinder()->in(__DIR__);
// Apply ruleset
$ruleset = new PhpCsFixerConfig\Rule\DefaultRuleset();
$ruleset->apply($config);
return $config;
Please have a look at CONTRIBUTING.md
.
This project is licensed under GNU General Public License 3.0 (or later).