PHPCS libraries and configuration for Laravel
I use this package to set up a consistent PHPCS configuration across my Laravel projects. The ruleset is based on @nandosalles' ruleset.
If you wish to use this configuration in your project, install it using composer:
composer require --dev emielmolenaar/phpcs-laravel
php vendor/bin/phpcs -i to verify that
phpcs-laravel is listed as an installed ruleset.
You may now use the ruleset like so:
php vendor/bin/phpcs --standard=phpcs-laravel app/