coisa / php-cs-fixer
Custom PHP CS Fixer Config
Installs: 1 446
Dependents: 17
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.4 || ^8.0
- friendsofphp/php-cs-fixer: ^3.8
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);