arubacao / php-cs-fixer-config
Preconfigured PHP Coding Standards Fixer for Laravel & plain PHP
Installs: 12 044
Dependents: 2
Suggesters: 0
Security: 0
Stars: 7
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.1.3
- friendsofphp/php-cs-fixer: ^2.15
Requires (Dev)
- ext-json: *
- laravel/framework: ^5.8
- phpunit/phpunit: ^7.5|^8.0
README
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.
Install
$ composer require arubacao/php-cs-fixer-config --dev
Usage
Command
$ vendor/bin/php-cs-fixer fix ./ --config=vendor/arubacao/php-cs-fixer-config/laravel.php_cs -vv
Composer Script (recommended)
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