tumedia / php-cs-fixer-config
Shared configuration for friendsofphp/php-cs-fixer for TU Media
v1.0.1
2018-03-14 16:07 UTC
Requires
- php: ^7.0
- friendsofphp/php-cs-fixer: ^2.7
Requires (Dev)
- phpunit/phpunit: ^6.4
This package is not auto-updated.
Last update: 2024-11-10 05:40:23 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