PHPackages                             brekitomasson/php-cs-fixer-breki-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. brekitomasson/php-cs-fixer-breki-config

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

brekitomasson/php-cs-fixer-breki-config
=======================================

My configuration for PHP-CS-Fixer

v1.1.10(1y ago)02.2k↓66.7%7MITPHPPHP ^8.1

Since Oct 8Pushed 1y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (1)Versions (15)Used By (7)

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

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

[![Check & fix styling](https://github.com/BrekiTomasson/php-cs-fixer-breki-config/actions/workflows/php_cs_fixer.yml/badge.svg?event=push)](https://github.com/BrekiTomasson/php-cs-fixer-breki-config/actions/workflows/php_cs_fixer.yml)

My own personal preferences for `php-cs-fixer` configuration. This is largely based on legibility and being able to understand the code quickly when reading it and places no emphasis on being compact, minimalistic or anything like that.

I believe in the old adage that "code is read far more than it is written", so this configuration is themed around that.

This project is also intentionally "light" and not tied to any framework or other third party package(s). The only required dependency for this project is `php-cs-fixer`, and this will likely continue to be true also in the future. For this reason, there is no ServiceProvider that integrates the package with Laravel or anything like that, even though I could consider releasing a separate package that provides a "Laravel wrapper" around this package at some point for simplicity's sake.

Installation and Usage
----------------------

[](#installation-and-usage)

Install the project via `composer` as per usual:

```
composer require --dev brekitomasson/php-cs-fixer-breki-config

```

Once installed into your project, the RuleSet can be used by `php-cs-fixer` by generating your own `.php-cs-fixer` file with contents similar to the following:

```
