PHPackages                             novius/additional-php-cs-fixers - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. novius/additional-php-cs-fixers

ActiveLibrary[Testing &amp; Quality](/categories/testing)

novius/additional-php-cs-fixers
===============================

Some additional custom fixers for php-cs-fixer.

1.0.1(9y ago)02.0kPHPPHP &gt;=5.6

Since May 3Pushed 9y ago3 watchersCompare

[ Source](https://github.com/novius/additional-php-cs-fixers)[ Packagist](https://packagist.org/packages/novius/additional-php-cs-fixers)[ RSS](/packages/novius-additional-php-cs-fixers/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

This library adds some custom fixers for php-cs-fixer (v2).

Installation
============

[](#installation)

Add this package to your composer.json:

```
{
    "require-dev": {
        "novius/additional-php-cs-fixers": "~1.0.0"
    },
}
```

Modify your `.php_cs`:

- Include the composer autoload:

```
include 'vendor/autoload.php';
```

- Register the custom fixers:

```
return PhpCsFixer\Config::create()
    //...
    ->registerCustomFixers(SebC\AdditionalPhpCsFixers\Helper::getCustomFixers())
```

- Use the new rules as you wish:

```
$rules = [
    // ...
    'SebCAdditionalPhpCsFixers/disallow_unaliased_classes' => [
        'replace_namespaces' => [
            'Fuel\Core' => '',
            'Illuminate\Support\Facades' => '',
        ],
    ],
];
```

`disallow_unaliased_classes` rule:
==================================

[](#disallow_unaliased_classes-rule)

This prevents any use of some specific namespace, and encourages to replace it with another.

This is mainly useful/designed to force the use of aliased classes in some frameworks like Laravel or FuelPHP.

As example, with the following rules configuration:

- `'Fuel\Core' => '',` will trigger an error everytime a class such as `Fuel\Core\Config` is directly called, and will suggest to replace it with `Config`
- `'Illuminate\Support\Facades' => '',` will prevent a call like `Illuminate\Support\Facades\Validator` and replace it with `Validator`
- `'Some\Evil\Stuff' => 'OtherStuff',` will replace `Some\Evil\Stuff\Foo::myFunction()` with `OtherStuff\Foo::myFunction()`

This also works with `use`d namespaces.

TODO
====

[](#todo)

Unit tests

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

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

Total

2

Last Release

3336d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/341860?v=4)[Novius](/maintainers/novius)[@novius](https://github.com/novius)

---

Top Contributors

[![jguyomard](https://avatars.githubusercontent.com/u/1242207?v=4)](https://github.com/jguyomard "jguyomard (1 commits)")[![Seb-C](https://avatars.githubusercontent.com/u/2553075?v=4)](https://github.com/Seb-C "Seb-C (1 commits)")

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/novius-additional-php-cs-fixers/health.svg)

```
[![Health](https://phpackages.com/badges/novius-additional-php-cs-fixers/health.svg)](https://phpackages.com/packages/novius-additional-php-cs-fixers)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14228.7M341](/packages/dms-phpunit-arraysubset-asserts)[phpbenchmark/phpbenchmark

Easy to use benchmark toolkit for your PHP-application. This library contains classes for comparing algorithms as well as benchmarking application responses

8011.5k2](/packages/phpbenchmark-phpbenchmark)

PHPackages © 2026

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