coisa/php-cs-fixer

Custom PHP CS Fixer Config

Maintainers

👁 coisa

Package info

github.com/coisa/php-cs-fixer

pkg:composer/coisa/php-cs-fixer

Statistics

Installs: 3 911

Dependents: 19

Suggesters: 0

Stars: 0

Open Issues: 0

2.1.0 2022-05-28 01:44 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 60d871f30ef99c67897cfdb371440cfc0932cf02

  • Felipe Sayão Lobato Abreu <github.woop@mentor.dev.br>

This package is auto-updated.

Last update: 2026-06-28 10:34:36 UTC


README

My own custom PHP CS Fixer config

Install

$ composer require --dev coisa/php-cs-fixer

Usage

Create a .php-cs-fixer.dist.php file with the following code:

<?php
return CoiSA\PhpCsFixer\PhpCsFixer::create(array(
 __FILE__,
 __DIR__,
 '!ignore_path_using_exclamation_sign',
));

Setting a custom file header:

<?php

$paths = array(
 __FILE__,
 __DIR__,
);

$header = \file_get_contents(__DIR__ . '/.docheader');

return CoiSA\PhpCsFixer\PhpCsFixer::create($paths, $header);