I got the tutorials originally from http://code.tutsplus.com/tutorials/psr-duh--net-31061. Install into your sublime text editor via Package Control the Phpcs plugin(https://github.com/benmatselby/sublime-phpcs).
Then these are the packages which should be installed in your machine:
phpcs
"squizlabs/php_codesniffer":"*"phpcbf
"squizlabs/php_codesniffer":"*"php-cs-fixer
"fabpot/php-cs-fixer":"*"