PHPackages                             coffreo/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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. coffreo/php-cs-fixer-config

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

coffreo/php-cs-fixer-config
===========================

Provides a configuration factory and multiple Coffreo rule sets for friendsofphp/php-cs-fixer.

v2.3.1(5y ago)011.5k4MITPHPCI failing

Since Jul 4Pushed 5y ago5 watchersCompare

[ Source](https://github.com/Coffreo/php-cs-fixer-config)[ Packagist](https://packagist.org/packages/coffreo/php-cs-fixer-config)[ RSS](/packages/coffreo-php-cs-fixer-config/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (2)Versions (9)Used By (4)

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

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

All credits goes to **[`localheinz/php-cs-fixer-config`](https://github.com/localheinz/php-cs-fixer-config)**.

This project is a fork with Coffreo rules and few changes to:

- add header template feature
- add reading of composer.json datas to fullfill header template
- handle multiples version of `php-cs-fixer` in tests

This repository provides a configuration factory and multiple Coffreo rule sets for [`friendsofphp/php-cs-fixer`](http://github.com/FriendsOfPHP/PHP-CS-Fixer).

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

[](#installation)

Run

```
$ composer require --dev coffreo/php-cs-fixer-config
```

Usage
-----

[](#usage)

### Configuration

[](#configuration)

Pick one of the rule sets:

- `Coffreo\PhpCsFixer\Config\RuleSet\Php54` (includes migration 5.6 rules)
- `Coffreo\PhpCsFixer\Config\RuleSet\Php54To56` (includes ONLY migration 5.6 rules)
- `Coffreo\PhpCsFixer\Config\RuleSet\Php56`
- `Coffreo\PhpCsFixer\Config\RuleSet\Php70`
- `Coffreo\PhpCsFixer\Config\RuleSet\Php71`
- `Coffreo\PhpCsFixer\Config\RuleSet\Php72`

📒 All configuration (except `Php54To56`) include `@Symfony` and `@PSR2` rules.

Create a configuration file `.php_cs` in the root of your project:

```
