PHP CS Fixer config for Yii2 projects
$ composer require --dev plumthedev/yii2-php-cs-fixer-config
Create 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-tests
PHP 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