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

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

sirix/php-cs-fixer-config
=========================

Sirix PHP coding standards fixer configuration.

1.2.0(3w ago)01.5kMITPHPPHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0CI passing

Since Mar 29Pushed 3w ago1 watchersCompare

[ Source](https://github.com/sirix777/php-cs-fixer-config)[ Packagist](https://packagist.org/packages/sirix/php-cs-fixer-config)[ Fund](https://buymeacoffee.com/sirix)[ GitHub Sponsors](https://github.com/sirix777)[ RSS](/packages/sirix-php-cs-fixer-config/feed)WikiDiscussions main Synced today

READMEChangelog (6)Dependencies (19)Versions (7)Used By (0)

Wrapper with pre-defined rules around the [PHP-CS-Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) package - A tool to automatically fix PHP Coding Standards issues.

[![Latest Stable Version](https://camo.githubusercontent.com/2d6d3909007b6284da74906a62265c4d25692a9bc6d76c561faf505ba586a791/687474703a2f2f706f7365722e707567782e6f72672f73697269782f7068702d63732d66697865722d636f6e6669672f76)](https://packagist.org/packages/sirix/php-cs-fixer-config) [![Total Downloads](https://camo.githubusercontent.com/bb11eff04a869bc38b4ca847f3081275cafdec61fdcd94e0525fb07c2f204c34/687474703a2f2f706f7365722e707567782e6f72672f73697269782f7068702d63732d66697865722d636f6e6669672f646f776e6c6f616473)](https://packagist.org/packages/sirix/php-cs-fixer-config) [![Latest Unstable Version](https://camo.githubusercontent.com/1192cc4f08375d7638d7a7c4eb8ef8731d010f5b69a4aee32f5cb326042b4c36/687474703a2f2f706f7365722e707567782e6f72672f73697269782f7068702d63732d66697865722d636f6e6669672f762f756e737461626c65)](https://packagist.org/packages/sirix/php-cs-fixer-config) [![License](https://camo.githubusercontent.com/ddde237f8eb7b573d9011662b9a34141790ff929f601de88ee5d22b442fcbb9f/687474703a2f2f706f7365722e707567782e6f72672f73697269782f7068702d63732d66697865722d636f6e6669672f6c6963656e7365)](https://packagist.org/packages/sirix/php-cs-fixer-config) [![PHP Version Require](https://camo.githubusercontent.com/f7d68c4b1ddc2c43e767c24c38daf4b3891edc74bab9deb999e4b784098dfedb/687474703a2f2f706f7365722e707567782e6f72672f73697269782f7068702d63732d66697865722d636f6e6669672f726571756972652f706870)](https://packagist.org/packages/sirix/php-cs-fixer-config)

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

[](#installation)

### Using Composer

[](#using-composer)

The recommended way to install PHP CS Fixer is to use Composer in a dedicated composer.json file in your project, for example in the tools/php-cs-fixer directory:

1. Create a new tools/php-cs-fixer directory:

```
mkdir -p tools/php-cs-fixer
```

2. Install via composer:

```
composer req --dev --working-dir=tools/php-cs-fixer sirix/php-cs-fixer-config
```

### Configuration

[](#configuration)

1. Create PHP file and name it `.php-cs-fixer.dist.php` and place it inside root directory of project. It will be recognized by PHP CS Fixer automatically.
2. Contents of file should look like this:

```
