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 2mo 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 60% 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

3285d 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

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M679](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M571](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.0k](/packages/orchestra-testbench)

PHPackages © 2026

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