arubacao/php-cs-fixer-config

Preconfigured PHP Coding Standards Fixer for Laravel & plain PHP

v0.3.0 2019-08-19 19:49 UTC

README

php-cs-fixer rule sets for Laravel & plain PHP projects.

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