PHPackages                             jreklund/php-cs-fixer-compat - 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. jreklund/php-cs-fixer-compat

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

jreklund/php-cs-fixer-compat
============================

Compatibility layer for older rules that have changed

v1.0.2(1y ago)043MITPHP

Since Feb 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jreklund/PHP-CS-Fixer-Compat)[ Packagist](https://packagist.org/packages/jreklund/php-cs-fixer-compat)[ RSS](/packages/jreklund-php-cs-fixer-compat/feed)WikiDiscussions main Synced today

READMEChangelog (3)DependenciesVersions (4)Used By (0)

PHP Coding Standards Fixer Compat(ibility)
==========================================

[](#php-coding-standards-fixer-compatibility)

Use older versions of rules in [PHP-CS-Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) v3.61.1 (or newer?).

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

[](#installation)

```
composer require --dev jreklund/php-cs-fixer-compat

```

### Requirements

[](#requirements)

You must install either [friendsofphp/php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) or [php-cs-fixer/shim](https://github.com/PHP-CS-Fixer/shim) (recommended) for this package to work.

```
composer require --dev friendsofphp/php-cs-fixer

```

```
composer require --dev php-cs-fixer/shim

```

Usage
-----

[](#usage)

```
$config = new PhpCsFixer\Config();

return $config
    ->registerCustomFixers([
        new PhpCsFixerCompat\Fixer\Basic\BracesFixer380(),
    ])
    ->setRules([
        '@PER' => true,
        'control_structure_braces' => false,
        'control_structure_continuation_position' => false,
        'braces_position' => false,
        'no_multiple_statements_per_line' => false,
        'statement_indentation' => false,
        'PhpCsFixerCompat/braces_380' => true,
    ])
    ->setFinder(
        PhpCsFixer\Finder::create()
        ->exclude('vendor')
        ->in(__DIR__)
    );
```

PHP-CS-Fixer/shim
-----------------

[](#php-cs-fixershim)

⚠️ Depending on how [PHP-CS-Fixer/shim](https://github.com/PHP-CS-Fixer/shim) gets executed, you may need to manually load `bootstrap.php` by requiring it in your `.php-cs-fixer.php`.

```
$compatPath = implode(DIRECTORY_SEPARATOR, [
    __DIR__,
    'vendor',
    'jreklund',
    'php-cs-fixer-compat',
]);

$bootstrap = $compatPath . DIRECTORY_SEPARATOR . 'bootstrap.php';

if (file_exists($bootstrap)) {
    require $bootstrap;
}

// config starts here
```

Rules
-----

[](#rules)

All compat rules follow the same naming scheme: `PhpCsFixerCompat/{rule}_{version}`.

All fixers can be found under the namespace: `PhpCsFixerCompat\Fixer\{custom-fixer}`.

---

RuleVersionCompat RuleCustom Fixerbraces3.8.0braces\_380Basic\\BracesFixer380

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~267 days

Total

3

Last Release

694d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/659f197bd0ee0175c562be7e62861c04c89f5c90c2a7dab488a8fa5e923009de?d=identicon)[jreklund](/maintainers/jreklund)

---

Top Contributors

[![jreklund](https://avatars.githubusercontent.com/u/3641536?v=4)](https://github.com/jreklund "jreklund (9 commits)")

### Embed Badge

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

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

###  Alternatives

[pixelopen/cloudflare-turnstile-bundle

A simple package to help integrate Cloudflare Turnstile on Symfony.

35242.6k3](/packages/pixelopen-cloudflare-turnstile-bundle)

PHPackages © 2026

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