arubacao/php-cs-fixer-config

Preconfigured PHP Coding Standards Fixer for Laravel & plain PHP

v0.4.0 2019-09-19 21:51 UTC

This package is auto-updated.

Last update: 2020-06-19 23:28: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