php-cs-fixer rule sets for Laravel & plain PHP projects.
Note: This project is unmaintained. I suggest you take a look at matt-allan/laravel-code-style instead.
$ composer require arubacao/php-cs-fixer-config --dev
$ vendor/bin/php-cs-fixer fix ./ --config=vendor/arubacao/php-cs-fixer-config/laravel.php_cs -vv
Add to your composer.json file
...
"scripts": {
"cs": "vendor/bin/php-cs-fixer fix ./ --config=vendor/arubacao/php-cs-fixer-config/laravel.php_cs -vv"
},
...
Now you can execute:
$ composer cs