Laravel PHP_CodeSniffer
It checks the same thing to the Antonio's original project, in additional this sniffer allows inline control structures
and check the functions have docblocks., (*1)
Your source code will be checked for PSR-1 & the Laravel "flavor" of PSR-2., (*2)
Usage wih git
Clone this repository, (*3)
git clone http://github.com/lukzgois/laravelcs LaravelCodeSniffer
Execute CodeSniffer, (*4)
phpcs --standard=LaravelCodeSniffer/Standards/Laravel/ /path/to/your/project/files
The recommended way is to install it globally with the following command:, (*5)
composer global require lukzgois/laravelcs
Make sure you have ~/.composer/vendor/bin/ in your PATH., (*6)
You will then be able to run PHP Code Sniffer with the Laravel Standard:, (*7)
phpcs --standard=$HOME/.composer/vendor/lukzgois/laravelcs/Standards/Laravel/ /path/to/your/project/files
Contributing
There are probably still a lot to do here, so please, open issues and send pull requests., (*8)