stolt / php-cs-fixer-custom-fixers
A growing set of custom fixers for PHP-CS-Fixer (https://cs.symfony.com/).
v0.0.6
2023-09-28 19:06 UTC
Requires
- php: ^8.0
- friendsofphp/php-cs-fixer: ^3
Requires (Dev)
README
A growing set of custom fixers for PHP-CS-Fixer.
Installation
The custom fixers should be installed through Composer.
composer require --dev stolt/php-cs-fixer-custom-fixers
Then in your PHP-CS-Fixer configuration file i.e. .php-cs-fixer.php
register the custom
fixer and use it as shown next.
<?php declare(strict_types=1); return (new \PhpCsFixer\Config()) ->registerCustomFixers(new \Stolt\PhpCsFixer\Fixers()) ->setRules([ 'Stolt/namespace_prefix_internal_php_functions' => true, ]);