PHPackages                             brandembassy/phpstan-forbidden-method-calls-rule - 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. brandembassy/phpstan-forbidden-method-calls-rule

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

brandembassy/phpstan-forbidden-method-calls-rule
================================================

Rule for PHPStan that enables you to forbid some methods from being called.

1.0.1(7y ago)723.1kMITPHP ~7.2

Since Aug 21Compare

[ Source](https://github.com/BrandEmbassy/phpstan-forbidden-method-calls-rule)[ Packagist](https://packagist.org/packages/brandembassy/phpstan-forbidden-method-calls-rule)[ RSS](/packages/brandembassy-phpstan-forbidden-method-calls-rule/feed)WikiDiscussions Synced 2mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/BrandEmbassy/phpstan-forbidden-method-calls-rule).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Total

2

Last Release

2819d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4a34c5a70829149e23e12455370e8c4d9c17f0a58b4601fda1c746defca8d176?d=identicon)[janveselynet](/maintainers/janveselynet)

![](https://www.gravatar.com/avatar/505f8fad46cba0f5876182a5d1c498def3024b173f74a424f2c11c43759c1917?d=identicon)[ph-legacy](/maintainers/ph-legacy)

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/brandembassy-phpstan-forbidden-method-calls-rule/health.svg)

```
[![Health](https://phpackages.com/badges/brandembassy-phpstan-forbidden-method-calls-rule/health.svg)](https://phpackages.com/packages/brandembassy-phpstan-forbidden-method-calls-rule)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/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.1k](/packages/orchestra-testbench)

PHPackages © 2026

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