PHPackages                             nexusphp/cs-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. nexusphp/cs-config

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nexusphp/cs-config
==================

A factory for custom rulesets for PHP CS Fixer.

v3.28.1(2mo ago)31.6M—8.4%118MITPHPPHP ^8.2CI passing

Since Nov 28Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/NexusPHP/cs-config)[ Packagist](https://packagist.org/packages/nexusphp/cs-config)[ RSS](/packages/nexusphp-cs-config/feed)WikiDiscussions 3.x Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (69)Used By (18)

Nexus CS Config
===============

[](#nexus-cs-config)

[![PHP version](https://camo.githubusercontent.com/862935663f1a7f9b7eaf32a610c4a3d80e66d1a0891d5c4642d02ebeb31cfdba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6e657875737068702f63732d636f6e666967)](https://php.net)[![build](https://github.com/NexusPHP/cs-config/actions/workflows/build.yml/badge.svg)](https://github.com/NexusPHP/cs-config/actions/workflows/build.yml)[![Coverage Status](https://camo.githubusercontent.com/e43318767b868e02e20635e45f9bbc7d2d9253a9b1dec14cfe260d797656da73/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4e657875735048502f63732d636f6e6669672f62616467652e7376673f6272616e63683d646576656c6f70)](https://coveralls.io/github/NexusPHP/cs-config?branch=develop)[![Latest Stable Version](https://camo.githubusercontent.com/6895c0108b65cd608b5cab589db23376b8f676d3ff7353a3809fc7da4199a038/68747470733a2f2f706f7365722e707567782e6f72672f6e657875737068702f63732d636f6e6669672f76)](//packagist.org/packages/nexusphp/cs-config)[![license MIT](https://camo.githubusercontent.com/5388e4581656d0998801e4192258158ebd52cfc5370cb076748a81fa7e2a52e3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6e657875737068702f63732d636f6e666967)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/b107ab43592e1dfd4591e1d5414667b363e420bb1a44e2b8bb0caa45629b98b8/68747470733a2f2f706f7365722e707567782e6f72672f6e657875737068702f63732d636f6e6669672f646f776e6c6f616473)](//packagist.org/packages/nexusphp/cs-config)

This library provides a factory for custom rulesets for [`friendsofphp/php-cs-fixer`](https://github.com/FriendsOfPHP/PHP-CS-Fixer).

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

[](#installation)

You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):

```
composer require nexusphp/cs-config

```

If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:

```
composer require --dev nexusphp/cs-config

```

Configuration
-------------

[](#configuration)

- Create a `.php-cs-fixer.dist.php` at the root of your project:

```
