arubacao/php-cs-fixer-config

This package is abandoned and no longer maintained. No replacement package was suggested.

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: 2021-05-16 14:24:12 UTC


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