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.1.2(5mo ago)0601MITPHPPHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0CI passing

Since Mar 29Pushed 5mo 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 1mo ago

READMEChangelog (5)Dependencies (9)Versions (6)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.

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:

```
