[DEPRECATED] Laravel Pint is an excellent, maintained replacement. Thanks to all contributers while this repository was still alive!
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
Afterwards, run 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/
Contributions welcome.