PHPackages                             hks-systeme/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. hks-systeme/php-cs-fixer-config

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

hks-systeme/php-cs-fixer-config
===============================

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

2.9.0(4y ago)3264.9k↓50%[2 PRs](https://github.com/hks-systeme/php-cs-fixer-config/pulls)MITPHPPHP ^7.4 || ^8.0CI passing

Since Jan 27Pushed 2mo ago8 watchersCompare

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

READMEChangelog (10)Dependencies (7)Versions (23)Used By (0)

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

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

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

[![Code Coverage](https://camo.githubusercontent.com/22789886d320b427974929d277f3d2ce2c7fbc8b8bf475b954780bff084221a5/68747470733a2f2f636f6465636f762e696f2f67682f686b732d73797374656d652f7068702d63732d66697865722d636f6e6669672f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/hks-systeme/php-cs-fixer-config)[![Type Coverage](https://camo.githubusercontent.com/b279b6dbcb4367225487b842f44f594e2e80ca9a827376d21ac93249c8e30550/68747470733a2f2f73686570686572642e6465762f6769746875622f686b732d73797374656d652f7068702d63732d66697865722d636f6e6669672f636f7665726167652e737667)](https://shepherd.dev/github/hks-systeme/php-cs-fixer-config)

[![Latest Stable Version](https://camo.githubusercontent.com/ee0735e01ab0a8c95a6fb4f6de98dc1f15604d63bc77bda208df99916d4aa4d0/68747470733a2f2f706f7365722e707567782e6f72672f686b732d73797374656d652f7068702d63732d66697865722d636f6e6669672f762f737461626c65)](https://packagist.org/packages/hks-systeme/php-cs-fixer-config)[![Total Downloads](https://camo.githubusercontent.com/01c5a9989a5e4312b80fc3eccdbbfef55916e9a03616ee2d224e387ae11a10bb/68747470733a2f2f706f7365722e707567782e6f72672f686b732d73797374656d652f7068702d63732d66697865722d636f6e6669672f646f776e6c6f616473)](https://packagist.org/packages/hks-systeme/php-cs-fixer-config)

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

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

[](#installation)

Run

```
$ composer require --dev hks-systeme/php-cs-fixer-config
```

Usage
-----

[](#usage)

### Configuration

[](#configuration)

Pick one of the rule sets:

- [`HKS\PhpCsFixer\RuleSet\Php74`](src/RuleSet/Php74.php)
- [`HKS\PhpCsFixer\RuleSet\Php80`](src/RuleSet/Php80.php)
- [`HKS\PhpCsFixer\RuleSet\Php81`](src/RuleSet/Php81.php)

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

```
