tumedia/php-cs-fixer-config

Shared configuration for friendsofphp/php-cs-fixer for TU Media

v1.0.1 2018-03-14 16:07 UTC

This package is not auto-updated.

Last update: 2024-12-08 05:56:32 UTC


README

Shared friendsofphp/php-cs-fixer configuration for TU Media.

Local Setup

Install this package globally:

$ composer global require tumedia/php-cs-fixer-config

Since this package requires friendsofphp/php-cs-fixer, the php-cs-fixer CLI will now be available.

Per-Project Setup

.php_cs

Put a .php_cs file in your project root:

<?php

return Tumedia\CS\Config::tap(function ($config) {
    $config->getFinder()->in(__DIR__)->exclude(['directory-to-exclude']);
});

Pro-Tip: Add .php_cs.cache to your .gitignore file

Running the fixer

$ php-cs-fixer fix