PHP CodeSniffer Coding Standard
This standard can be installed with the Composer dependency manager.
-
Install the coding standard as a dependency of your project
composer require --dev free2er/coding-standard
-
Create phpcs configuration
cp vendor/free2er/coding-standard/phpcs.xml.dist . nano phpcs.xml.dist
-
Done!
vendor/bin/phpcs