PHPCS
PHP Coding standard
Requirements
phpcs
CentOS
sudo yum install phpcs
Ubuntu
sudo apt-get install phpcs
Install
Copy the folder to the CodeSniffer:
CentOS
/usr/share/pear/PHP/CodeSniffer/Standards/
Ubuntu
/usr/share/php/PHP/CodeSniffer/Standards/
Set Default
sudo vim /etc/php-codesniffer/CodeSniffer.conf
And change the default to the CS of your choice