szepeviktor / php-cs-fixer-laravel-ruleset

🐘 Provides the ruleset from Laravel Pint

Home Page:https://github.com/laravel/pint/blob/main/resources/presets/laravel.php

Repository from Github https://github.comszepeviktor/php-cs-fixer-laravel-rulesetRepository from Github https://github.comszepeviktor/php-cs-fixer-laravel-ruleset

Laravel ruleset for PHP CS Fixer

Installation

Run

composer require --dev szepeviktor/php-cs-fixer-laravel-ruleset

Usage

Configuration

Create a configuration file .php-cs-fixer.php in the root of your project:

use SzepeViktor\PhpCsFixer\Laravel\Factory;

$config = Factory::fromLaravelRuleSet();

$config->getFinder()
    ->in([
        __DIR__ . '/app',
        __DIR__ . '/config',
        __DIR__ . '/database',
        __DIR__ . '/routes',
        __DIR__ . '/tests',
    ])
;

return $config;

About

🐘 Provides the ruleset from Laravel Pint

https://github.com/laravel/pint/blob/main/resources/presets/laravel.php

License:MIT License


Languages

Language:PHP 100.0%