kubawerlos / php-cs-fixer-config
Provides configuration for PHP CS Fixer
v5.7.0
2026-05-01 07:52 UTC
Requires
- php: ^8.3
- kubawerlos/php-cs-fixer-custom-fixers: ^3.37.1
- php-cs-fixer/shim: ^3.95.1
Requires (Dev)
- phpunit/phpunit: ^12.5.24 || ^13.1.8
This package is auto-updated.
Last update: 2026-05-31 08:00:36 UTC
README
Provides a configuration for PHP CS Fixer.
Installation
composer require --dev kubawerlos/php-cs-fixer-config php vendor/bin/fixinit
Usage
Create .php-cs-fixer.php file and use PhpCsFixerConfig\Factory:
<?php return PhpCsFixerConfig\Factory::createForLibrary('Library', 'Author', 2020 /* license initial year */) ->setFinder( PhpCsFixer\Finder::create() ->files() ->in(__DIR__ . '/src') );
for library or use method createForProject for project.