PHP Code Formatter Setting for Zend Studio

Enable PSR2 Library in Zend Studio :
Windows >> Preferences >> PHP >> Code Style >> Formatter
Select PSR2 from Active Profile dropdown.


Installing Code sniffer
sudo wget http://pear.php.net/go-pear.phar
sudo php go-pear.phar
sudo /usr/bin/pear install PHP_CodeSniffer

Check code :
phpcs --standard=Zend --report=summary folder_path/ >summay.txt
phpcs --standard=Zend --report=full folder_path/ >fullreport.txt