PHPackages                             gacela-project/phpstan-extension - 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. gacela-project/phpstan-extension

ArchivedPhpstan-extension[Testing &amp; Quality](/categories/testing)

gacela-project/phpstan-extension
================================

PHPStan rule for projects using Gacela

0.4.0(2y ago)44.1k[4 issues](https://github.com/gacela-project/phpstan-extension/issues)1MITPHPPHP &gt;=8.0CI failing

Since Nov 27Pushed 1w ago2 watchersCompare

[ Source](https://github.com/gacela-project/phpstan-extension)[ Packagist](https://packagist.org/packages/gacela-project/phpstan-extension)[ Fund](https://chemaclass.com/sponsor)[ RSS](/packages/gacela-project-phpstan-extension/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (6)Dependencies (7)Versions (6)Used By (1)

Gacela PHPStan extension — abandoned
====================================

[](#gacela-phpstan-extension--abandoned)

> **This package is abandoned. Use [`gacela-project/gacela`](https://github.com/gacela-project/gacela) instead.**
>
> Everything this extension did is built into the framework, and more. It is also **incompatible with PHPStan 2**: it builds errors without the identifiers PHPStan 2 requires, so it cannot load against the PHPStan version Gacela itself needs.

```
composer remove --dev gacela-project/phpstan-extension
```

The rules now ship with Gacela, for **PHPStan and Psalm alike**, sharing one implementation so the two analysers cannot disagree about what counts as a violation. See [docs/static-analysis.md](https://github.com/gacela-project/gacela/blob/main/docs/static-analysis.md).

Migrating
---------

[](#migrating)

Replace the include:

```
# before
includes:
    - vendor/gacela-project/phpstan-extension/extension.neon

# after
includes:
    - vendor/gacela-project/gacela/phpstan-gacela.neon
```

That include turns on the pillar rules — a `*Facade` must extend `AbstractFacade`, a facade method may only delegate, a factory may not reach for a Facade, a facade interface must stay in sync — plus real return types for the pillar accessors and for `getProvidedDependency(Foo::class)`. None of that existed here.

The module-boundary check stays opt-in, because nothing in a class name says where a boundary falls. Its two parameters are renamed:

`phpstan-extension`Gacela`parameters.gacela.modulesNamespace``rootNamespace``parameters.gacela.excludedNamespaces``sharedNamespaces````
services:
    -
        class: Gacela\PHPStan\Rules\CrossModuleViaFacadeRule
        tags: [phpstan.rules.rule]
        arguments:
            rootNamespace: App\Modules
            sharedNamespaces:
                - App\Shared
    -
        class: Gacela\PHPStan\Rules\CrossModuleMethodCallRule
        tags: [phpstan.rules.rule]
        arguments:
            rootNamespace: App\Modules
            sharedNamespaces:
                - App\Shared
```

`EnforceModuleBoundariesForMethodCallRule` — the one rule this package had — is `CrossModuleMethodCallRule` there. The check now has a **second half**, `CrossModuleViaFacadeRule`, which reports the crossings a source writes by name (`new`, static calls, class constants). This package never covered those.

Why it moved
------------

[](#why-it-moved)

The rules describe Gacela's architecture and name `AbstractFacade`, `AbstractFactory` and the rest. Kept in their own package they fell behind the framework they check — which is what happened here. Shipped with it, they move in lockstep and run against Gacela's own source on every build.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance44

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

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

Total

5

Last Release

735d ago

PHP version history (2 changes)0.1PHP &gt;=7.4, &lt;8.3

0.4.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc81fab8d878316b9117eb3a8fe3abece1d25a37c3099d76c6f3651f82991505?d=identicon)[DaveLiddament](/maintainers/DaveLiddament)

![](https://www.gravatar.com/avatar/3d166420c6770c5941e10bd68b2d26501eabb432e280d8e6eba0a344bcc1e5ae?d=identicon)[Chemaclass](/maintainers/Chemaclass)

---

Top Contributors

[![Chemaclass](https://avatars.githubusercontent.com/u/5256287?v=4)](https://github.com/Chemaclass "Chemaclass (29 commits)")[![DaveLiddament](https://avatars.githubusercontent.com/u/6787687?v=4)](https://github.com/DaveLiddament "DaveLiddament (4 commits)")

---

Tags

frameworkgacelaphpphpstan

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/gacela-project-phpstan-extension/health.svg)

```
[![Health](https://phpackages.com/badges/gacela-project-phpstan-extension/health.svg)](https://phpackages.com/packages/gacela-project-phpstan-extension)
```

###  Alternatives

[phel-lang/phel-lang

Phel is a functional programming language that compiles to PHP

5196.5k22](/packages/phel-lang-phel-lang)

PHPackages © 2026

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