PHP CS Fixer config for Yii2 projects. The ruleset is grab from Yii 2 ecosystem.
$ composer require --dev plumthedev/yii2-php-cs-fixer-configCreate a configuration file .php_cs in the root of your project:
<?php use plumthedev\PhpCsFixer\Config; $csConfig = Config::create(); $csConfigFinder = $csConfig->getFinder(); $csConfigFinder->in(__DIR__); // set finder root directory $csConfig->setFinder($csConfigFinder); return $csConfig;PHPUnit
$ composer unit-testsPHP CS Fixer
$ composer cs-fix This library is open source so if you want to contribute, you can.
Please submit bug reports, suggestions and pull requests to the GitHub issue tracker.
This project is licensed under the MIT License - see the LICENSE file for details