Collection of PHP QA tools
Install:
composer global require "squizlabs/php_codesniffer=*"
Usage:
For phpcs
Integrate with Jetbrains see documentation
Use custom configuration file: phpcs.xml.dist thanks to Woody Gilk http://shadowhand.me/configuring-php-style-checks-with-composer/
For phpcbf
phpcbf <file or directory>
Install:
composer global require "phpmd/phpmd=*"
Usage:
Integrate with Jetbrains see documentation
Install:
composer global require "phpunit/phpunit=*"
Install
composer require "friendsofphp/php-cs-fixer"
Usage:
Use custom configuration file: .php_cs. This configuration will check against PSR1 and PSR2 coding conventions as well as clean up unused imports. (Similar to the code cleanup options that Jetbrains provides)