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

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

eliashaeussler/php-cs-fixer-config
==================================

My personal configuration for PHP-CS-Fixer

3.1.0(5mo ago)2663.4k—1.3%[1 issues](https://github.com/eliashaeussler/php-cs-fixer-config/issues)20GPL-3.0-or-laterPHPPHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0CI passing

Since Feb 18Pushed 1mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (11)Versions (18)Used By (20)

PHP-CS-Fixer config
===================

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

[![Coverage](https://camo.githubusercontent.com/79f7cddb975158b1472beb50e5a563330fa4b7810e886521a444a32c38e76fc0/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c73436f7665726167652f6769746875622f656c6961736861657573736c65722f7068702d63732d66697865722d636f6e6669673f6c6f676f3d636f766572616c6c73)](https://coveralls.io/github/eliashaeussler/php-cs-fixer-config)[![CGL](https://camo.githubusercontent.com/fffccfb5a3cef430b78410cf641ed420e3d2601f0922f76e4b887ca703eda87d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f656c6961736861657573736c65722f7068702d63732d66697865722d636f6e6669672f63676c2e79616d6c3f6c6162656c3d63676c266c6f676f3d676974687562)](https://github.com/eliashaeussler/php-cs-fixer-config/actions/workflows/cgl.yaml)[![Tests](https://camo.githubusercontent.com/f4f76a4e4b4839c2d56b914b21f30fd0abd4cc4daf7ae437e17876e588052293/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f656c6961736861657573736c65722f7068702d63732d66697865722d636f6e6669672f74657374732e79616d6c3f6c6162656c3d7465737473266c6f676f3d676974687562)](https://github.com/eliashaeussler/php-cs-fixer-config/actions/workflows/tests.yaml)[![Supported PHP Versions](https://camo.githubusercontent.com/a69f6fe35592c968814ccd4084bc0dd6c8d186ddc600ed52068eaa6a53ea6587/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f656c6961736861657573736c65722f7068702d63732d66697865722d636f6e6669672f7068703f6c6f676f3d706870)](https://packagist.org/packages/eliashaeussler/php-cs-fixer-config)

This package contains basic [PHP-CS-Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer)config for use in my personal projects. It is not meant to be used anywhere else. I won't provide support and don't accept pull requests for this repo.

🔥 Installation
--------------

[](#-installation)

[![Packagist](https://camo.githubusercontent.com/054bfd72261a62ac846a317de9dbb9373bb79f984e170c2c6299f067157c659d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656c6961736861657573736c65722f7068702d63732d66697865722d636f6e6669673f6c6162656c3d76657273696f6e266c6f676f3d7061636b6167697374)](https://packagist.org/packages/eliashaeussler/php-cs-fixer-config)[![Packagist Downloads](https://camo.githubusercontent.com/22e9de934ca8e569bb9bd43d85a04a8dac9d0db8a6d77fff4465c87c7cafa28d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656c6961736861657573736c65722f7068702d63732d66697865722d636f6e6669673f636f6c6f723d627269676874677265656e)](https://packagist.org/packages/eliashaeussler/php-cs-fixer-config)

```
composer require eliashaeussler/php-cs-fixer-config
```

⚡ Usage
-------

[](#-usage)

Configure PHP-CS-Fixer in your `.php-cs-fixer.php` file:

```
use EliasHaeussler\PhpCsFixerConfig;
use Symfony\Component\Finder;

// Create header rule
$header = PhpCsFixerConfig\Rules\Header::create(
    'eliashaeussler/package-name',
    PhpCsFixerConfig\Package\Type::ComposerPackage,
    PhpCsFixerConfig\Package\Author::create('Elias Häußler', 'elias@haeussler.dev'),
    PhpCsFixerConfig\Package\CopyrightRange::from(2021),
    PhpCsFixerConfig\Package\License::GPL3OrLater,
);

// Create TYPO3 rule set
$typo3RuleSet = PhpCsFixerConfig\Rules\Set\TYPO3RuleSet::create();

// Create custom rule set
$customRuleSet = PhpCsFixerConfig\Rules\RuleSet::fromArray([
    'modernize_types_casting' => true,
    'php_unit_test_case_static_method_calls' => [
        'call_type' => 'self',
    ],
]);

return PhpCsFixerConfig\Config::create()
    ->withRule($header)
    ->withRule($typo3RuleSet)
    ->withRule($customRuleSet)
    // You can also overwrite all rules
    ->withRule($customRuleSet, false)
    ->withFinder(static fn (Finder\Finder $finder) => $finder->in(__DIR__))
    // You can also inject your own Finder instance
    ->withFinder($finder)
;
```

⭐ License
---------

[](#-license)

This project is licensed under [GNU General Public License 3.0 (or later)](LICENSE).

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance73

Regular maintenance activity

Popularity39

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 78% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~69 days

Recently: every ~53 days

Total

16

Last Release

150d ago

Major Versions

1.3.0 → 2.0.02024-01-01

2.4.0 → 3.0.02025-11-19

PHP version history (5 changes)1.0.0PHP ~8.1.0 || ~8.2.0

1.3.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0

2.2.1PHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0

2.4.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

3.0.0PHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/144cefe55242b883c87cb537463f3ba75a0f8198fc5b602b50c838aae31fe7ee?d=identicon)[eliashaeussler](/maintainers/eliashaeussler)

---

Top Contributors

[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (577 commits)")[![eliashaeussler](https://avatars.githubusercontent.com/u/16313625?v=4)](https://github.com/eliashaeussler "eliashaeussler (161 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

configphp-cs-fixerrules

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/eliashaeussler-php-cs-fixer-config/health.svg)

```
[![Health](https://phpackages.com/badges/eliashaeussler-php-cs-fixer-config/health.svg)](https://phpackages.com/packages/eliashaeussler-php-cs-fixer-config)
```

###  Alternatives

[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4723.6M20](/packages/coenjacobs-mozart)[illuminate/session

The Illuminate Session package.

9937.4M753](/packages/illuminate-session)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)[akeneo/php-coupling-detector

Detect all the coupling issues of your project with respect to the coupling rules you have defined.

431.1M2](/packages/akeneo-php-coupling-detector)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

52664.9k12](/packages/solspace-craft-freeform)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
