PHPackages                             ergebnis/php-cs-fixer-config - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. ergebnis/php-cs-fixer-config

ActiveLibrary[Testing &amp; Quality](/categories/testing)

ergebnis/php-cs-fixer-config
============================

Provides a configuration factory and rule set factories for friendsofphp/php-cs-fixer.

6.60.2(2mo ago)692.9M↓21.8%17[1 issues](https://github.com/ergebnis/php-cs-fixer-config/issues)[1 PRs](https://github.com/ergebnis/php-cs-fixer-config/pulls)20MITPHPPHP ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

Since Nov 25Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/ergebnis/php-cs-fixer-config)[ Packagist](https://packagist.org/packages/ergebnis/php-cs-fixer-config)[ Docs](https://github.com/ergebnis/php-cs-fixer-config)[ RSS](/packages/ergebnis-php-cs-fixer-config/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (38)Versions (166)Used By (20)

php-cs-fixer-config
===================

[](#php-cs-fixer-config)

[![Integrate](https://github.com/ergebnis/php-cs-fixer-config/workflows/Integrate/badge.svg)](https://github.com/ergebnis/php-cs-fixer-config/actions)[![Merge](https://github.com/ergebnis/php-cs-fixer-config/workflows/Merge/badge.svg)](https://github.com/ergebnis/php-cs-fixer-config/actions)[![Release](https://github.com/ergebnis/php-cs-fixer-config/workflows/Release/badge.svg)](https://github.com/ergebnis/php-cs-fixer-config/actions)[![Renew](https://github.com/ergebnis/php-cs-fixer-config/workflows/Renew/badge.svg)](https://github.com/ergebnis/php-cs-fixer-config/actions)

[![Code Coverage](https://camo.githubusercontent.com/0aeed90f96c798eb846d498c5bd459b82e4215c8cc7f4f459916b8b7c5135677/68747470733a2f2f636f6465636f762e696f2f67682f65726765626e69732f7068702d63732d66697865722d636f6e6669672f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/ergebnis/php-cs-fixer-config)

[![Latest Stable Version](https://camo.githubusercontent.com/1a05672a7cb296fecb82af2a82c579600d45b12c056bc513e0dee8d1754a4007/68747470733a2f2f706f7365722e707567782e6f72672f65726765626e69732f7068702d63732d66697865722d636f6e6669672f762f737461626c65)](https://packagist.org/packages/ergebnis/php-cs-fixer-config)[![Total Downloads](https://camo.githubusercontent.com/3d39306c2d9d77ce643d4b5b3617ef96344e2135f05f7bc184260868429bdda7/68747470733a2f2f706f7365722e707567782e6f72672f65726765626e69732f7068702d63732d66697865722d636f6e6669672f646f776e6c6f616473)](https://packagist.org/packages/ergebnis/php-cs-fixer-config)[![Monthly Downloads](https://camo.githubusercontent.com/a5b359606b30331b600b587b5eb8964fbb1d86baf15aa2bf70173b839db26bc3/687474703a2f2f706f7365722e707567782e6f72672f65726765626e69732f7068702d63732d66697865722d636f6e6669672f642f6d6f6e74686c79)](https://packagist.org/packages/ergebnis/php-cs-fixer-config)

This project provides a [`composer`](https://getcomposer.org) package with a configuration factory and rule set factories for [`friendsofphp/php-cs-fixer`](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer).

Installation
------------

[](#installation)

Run

```
composer require --dev ergebnis/php-cs-fixer-config
```

Usage
-----

[](#usage)

### Configuration

[](#configuration)

Pick one of the rule sets:

- [`Ergebnis\PhpCsFixer\RuleSet\Php53`](src/RuleSet/Php53.php)
- [`Ergebnis\PhpCsFixer\RuleSet\Php54`](src/RuleSet/Php54.php)
- [`Ergebnis\PhpCsFixer\RuleSet\Php55`](src/RuleSet/Php55.php)
- [`Ergebnis\PhpCsFixer\RuleSet\Php56`](src/RuleSet/Php56.php)
- [`Ergebnis\PhpCsFixer\RuleSet\Php70`](src/RuleSet/Php70.php)
- [`Ergebnis\PhpCsFixer\RuleSet\Php71`](src/RuleSet/Php71.php)
- [`Ergebnis\PhpCsFixer\RuleSet\Php72`](src/RuleSet/Php72.php)
- [`Ergebnis\PhpCsFixer\RuleSet\Php73`](src/RuleSet/Php73.php)
- [`Ergebnis\PhpCsFixer\RuleSet\Php74`](src/RuleSet/Php74.php)
- [`Ergebnis\PhpCsFixer\RuleSet\Php80`](src/RuleSet/Php80.php)
- [`Ergebnis\PhpCsFixer\RuleSet\Php81`](src/RuleSet/Php81.php)
- [`Ergebnis\PhpCsFixer\RuleSet\Php82`](src/RuleSet/Php82.php)
- [`Ergebnis\PhpCsFixer\RuleSet\Php83`](src/RuleSet/Php83.php)
- [`Ergebnis\PhpCsFixer\RuleSet\Php84`](src/RuleSet/Php84.php)
- [`Ergebnis\PhpCsFixer\RuleSet\Php85`](src/RuleSet/Php85.php)

Create a configuration file `.php-cs-fixer.php` in the root of your project:

```
