PHPackages                             plumthedev/yii2-php-cs-fixer-config - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. plumthedev/yii2-php-cs-fixer-config

ActiveLibrary[Testing &amp; Quality](/categories/testing)

plumthedev/yii2-php-cs-fixer-config
===================================

Yii2 PHP coding standards configuration

1.2.0(6y ago)83.2k↓100%MITPHPCI failing

Since Nov 5Pushed 2y ago2 watchersCompare

[ Source](https://github.com/plumthedev/yii2-php-cs-fixer-config)[ Packagist](https://packagist.org/packages/plumthedev/yii2-php-cs-fixer-config)[ RSS](/packages/plumthedev-yii2-php-cs-fixer-config/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

Dear Packagist maintainer, looks it is me plumthedev and I really really need your help! Could you change my email to ? Thanks in advance!
=========================================================================================================================================================================

[](#dear-packagist-maintainer-looks-it-is-me-plumthedev-and-i-really-really-need-your-help-could-you-change-my-email-to-kacperpruszynski99gmailcom-thanks-in-advance)

Yii2 PHP CS Fixer Config
========================

[](#yii2-php-cs-fixer-config)

[![Packagist downloads](https://camo.githubusercontent.com/c5feaf330a14813d703596aa7e9c869751adaa0d958faf8b407b5820087515c5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706c756d7468656465762f796969322d7068702d63732d66697865722d636f6e6669673f636f6c6f723d253233386534346164)](https://camo.githubusercontent.com/c5feaf330a14813d703596aa7e9c869751adaa0d958faf8b407b5820087515c5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706c756d7468656465762f796969322d7068702d63732d66697865722d636f6e6669673f636f6c6f723d253233386534346164)[![GitHub license](https://camo.githubusercontent.com/6a7476da1552083f36bf95a6a7098cfbbb7223496775cec7f6fb91caacf9fab2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f706c756d7468656465762f796969322d7068702d63732d66697865722d636f6e6669673f636f6c6f723d253233386534346164)](https://camo.githubusercontent.com/6a7476da1552083f36bf95a6a7098cfbbb7223496775cec7f6fb91caacf9fab2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f706c756d7468656465762f796969322d7068702d63732d66697865722d636f6e6669673f636f6c6f723d253233386534346164)[![GitHub stars](https://camo.githubusercontent.com/23c3d7dfd4718c67129620f15eefbe733c4bab8fdfac897e8f417012f11db84f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f706c756d7468656465762f796969322d7068702d63732d66697865722d636f6e6669673f636f6c6f723d253233386534346164)](https://camo.githubusercontent.com/23c3d7dfd4718c67129620f15eefbe733c4bab8fdfac897e8f417012f11db84f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f706c756d7468656465762f796969322d7068702d63732d66697865722d636f6e6669673f636f6c6f723d253233386534346164)

PHP CS Fixer config for Yii2 projects. Contains [Config](src/Config.php) and [Finder](src/Finder.php) which excludes by default Yii2 app basic and advanced directories.
The ruleset is [grab from Yii 2 ecosystem](https://github.com/yiisoft/yii2/blob/master/cs/src/YiiConfig.php) and is automatically updated with it.

Installation
------------

[](#installation)

```
$ composer require --dev plumthedev/yii2-php-cs-fixer-config
```

Usage
-----

[](#usage)

Create a configuration file `.php_cs` in the root of your project:

```
