PHPackages                             the-ge/phpcsfixer-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. the-ge/phpcsfixer-fixers

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

the-ge/phpcsfixer-fixers
========================

Custom PHP CS Fixer rules by The Ge

1.0.7(1mo ago)0261MITPHPPHP ^8.1 || ^8.2 || ^8.3 || ^8.4

Since Mar 12Pushed 1mo agoCompare

[ Source](https://github.com/the-ge/phpcsfixer-fixers)[ Packagist](https://packagist.org/packages/the-ge/phpcsfixer-fixers)[ RSS](/packages/the-ge-phpcsfixer-fixers/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (10)Versions (9)Used By (1)

the-ge/phpcsfixer-fixers
========================

[](#the-gephpcsfixer-fixers)

Custom PHP CS Fixer fixers.

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

[](#installation)

```
composer require --dev the-ge/phpcsfixer-fixers
```

Fixers
------

[](#fixers)

### `TheGe/blank_lines_before_classy_block`

[](#thegeblank_lines_before_classy_block)

Ensures every named classy declaration (`class`, `interface`, `trait`, `enum`) — including its modifiers (`abstract`, `final`, `readonly`) and its metadata (comments, docblock, attributes) — is preceded by exactly **two blank lines** (three newline characters).

Anonymous classes (`new class`) are excluded.

**Priority:** `-24` (runs after `blank_line_after_namespace`, `no_blank_lines_after_phpdoc`, and `single_line_after_imports`).

#### Example

[](#example)

Configuration: `['blank_lines_count' => 2]`

```
// Before
namespace N;
class Foo {}

// After
namespace N;

class Foo {}
```

#### Registration

[](#registration)

```
// .php-cs-fixer.dist.php
use TheGe\PhpCsFixer\Fixer\ClassNotation\BlankLinesBeforeClassyBlockFixer;

return (new PhpCsFixer\Config())
    ->registerCustomFixers([new BlankLinesBeforeClassyBlockFixer()])
    ->setRules([
        'TheGe/blank_lines_before_classy_block' => true,
    ]);
```

Requirements
------------

[](#requirements)

- PHP 8.1 – 8.4
- friendsofphp/php-cs-fixer ^3.94

Running Tests
-------------

[](#running-tests)

```
composer boot
composer test
```

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance90

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

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 ~1 days

Total

8

Last Release

52d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/96ad8a28b4009deb3b480b91f6b9d3e31efdcf52eaa1606164503183a2c28f6e?d=identicon)[the-ge](/maintainers/the-ge)

---

Top Contributors

[![the-ge](https://avatars.githubusercontent.com/u/6468893?v=4)](https://github.com/the-ge "the-ge (30 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/the-ge-phpcsfixer-fixers/health.svg)

```
[![Health](https://phpackages.com/badges/the-ge-phpcsfixer-fixers/health.svg)](https://phpackages.com/packages/the-ge-phpcsfixer-fixers)
```

###  Alternatives

[kmlaravel/laravel-geographical-calculator

laravel package help you to implement geographical calculation, with With several algorithms that help you deal with coordinates

42677.2k2](/packages/kmlaravel-laravel-geographical-calculator)[jubeki/laravel-code-style

Combine Custom Fixers with the ruleset of Laravel Pint to fix your code style in Laravel Applications/Packages.

56521.7k8](/packages/jubeki-laravel-code-style)[shopsys/coding-standards

Coding standards definition compatible with PSR-2

20269.1k12](/packages/shopsys-coding-standards)[friendsoftypo3/kickstarter

Extension Kickstarter - Kickstart TYPO3 Extension

243.1k](/packages/friendsoftypo3-kickstarter)

PHPackages © 2026

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