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

This package is auto-updated.

Last update: 2024-10-29 11:45:51 UTC


README

Test Status Version !PHP Version Software License

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,
    ]);