melhorenvio/php-cs-fixer

This package is intended to centralize all PHP CS Fixer rules.

Maintainers

Package info

github.com/melhorenvio/php-cs-fixer

pkg:composer/melhorenvio/php-cs-fixer

Statistics

Installs: 311 423

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

2.0.0 2022-10-18 16:47 UTC

This package is auto-updated.

Last update: 2026-03-06 22:43:00 UTC


README

This package is intended to centralize all PHP CS Fixer rules.

Installation

You can install the package via composer:

composer require melhorenvio/php-cs-fixer

Usage

use Melhorenvio\PhpCsFixer\Style;
use PhpCsFixer\Config;
use PhpCsFixer\Finder;

$finder = Finder::create()
  ->in([
    __DIR__.'/src',
  ]);
  
$style = new Style($finder, new Config);

return $style->rules([
    'your-rule' => true
]);

Rules

Configuration

Area for links that help you configure PHP CS Fixer on the developers' machine

PHPStorm