Yii2 PHP CS Fixer Config


(Kacper Pruszynski) #1

Hi guys!

a few days ago, when I created a new project in Yii2, I realized that Yii2 has no configuration for Php CS Fixer and no external library provides it (or provided it, but is now dead)

Based on the configuration for the Yii2 ecosystem, I created a library that provides us with configurations, here it is:


#2

What is the advantage of your setup, compared to just using .php_cs (Sorry if I sound rude, I am just curious)?
Then you can use https://mlocati.github.io/php-cs-fixer-configurator/#version:2.15|configurator to create a config.


(Kacper Pruszynski) #3

@mathis Yii2 have own ecosystem code standards rules. I’m use it to ensure consistency, take a look