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(3d ago)0261MITPHPPHP ^8.1 || ^8.2 || ^8.3 || ^8.4

Since Mar 12Pushed 2d 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 today

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

46

—

FairBetter than 93% of packages

Maintenance99

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

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

42574.7k2](/packages/kmlaravel-laravel-geographical-calculator)

PHPackages © 2026

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