szepeviktor/php-cs-fixer-laravel-ruleset

Provides the ruleset from Laravel Pint

v0.1.0 2022-06-23 18:41 UTC

This package is auto-updated.

Last update: 2024-10-24 22:44:00 UTC


README

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;