kubawerlos/php-cs-fixer-config

Provides configuration for PHP CS Fixer

Maintainers

Package info

github.com/kubawerlos/php-cs-fixer-config

pkg:composer/kubawerlos/php-cs-fixer-config

Statistics

Installs: 8 371

Dependents: 1

Suggesters: 0

Stars: 2

v5.6.0 2025-09-28 10:54 UTC

README

Latest stable version PHP version CI Status License

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.