PHPackages                             brainbits/phpstan-rules - 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. brainbits/phpstan-rules

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

brainbits/phpstan-rules
=======================

PHPStan extension with opinionated strict rules for better code in tests.

4.0.0(1y ago)5172.4k—6.4%9MITPHP ^8.3

Since Feb 12Compare

[ Source](https://github.com/brainbits/phpstan-rules)[ Packagist](https://packagist.org/packages/brainbits/phpstan-rules)[ Docs](https://github.com/brainbits/phpstan-rules)[ RSS](/packages/brainbits-phpstan-rules/feed)WikiDiscussions Synced 1mo ago

READMEChangelogDependencies (7)Versions (12)Used By (9)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/brainbits/phpstan-rules).

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 70% 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 ~216 days

Recently: every ~201 days

Total

9

Last Release

553d ago

Major Versions

1.0.1 → 2.0.02021-04-26

2.0.0 → 3.0.02021-11-02

3.1.2 → 4.0.02024-11-11

PHP version history (6 changes)1.0.0PHP ^7.2

1.0.1PHP ^7.2|^8.0

2.0.0PHP ^7.3|^8.0

3.0.1PHP ^7.4|^8.0

3.1.0PHP ^8.1

4.0.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a25dcc661a3094c990b37332c58b8b7a085666f4b830dff8762d86c0e786c2b?d=identicon)[brainbits](/maintainers/brainbits)

---

Top Contributors

[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (7 commits)")[![daFish](https://avatars.githubusercontent.com/u/150416?v=4)](https://github.com/daFish "daFish (1 commits)")[![pl-github](https://avatars.githubusercontent.com/u/1941578?v=4)](https://github.com/pl-github "pl-github (1 commits)")[![temp](https://avatars.githubusercontent.com/u/216128?v=4)](https://github.com/temp "temp (1 commits)")

---

Tags

PHPStantestsphpstan-rules

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/brainbits-phpstan-rules/health.svg)

```
[![Health](https://phpackages.com/badges/brainbits-phpstan-rules/health.svg)](https://phpackages.com/packages/brainbits-phpstan-rules)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[ekino/phpstan-banned-code

Detected banned code using PHPStan

2925.6M92](/packages/ekino-phpstan-banned-code)[shipmonk/dead-code-detector

Dead code detector to find unused PHP code via PHPStan extension. Can automatically remove dead PHP code. Supports libraries like Symfony, Doctrine, PHPUnit etc. Detects dead cycles. Can detect dead code that is tested.

3462.2M52](/packages/shipmonk-dead-code-detector)[szepeviktor/phpstan-wordpress

WordPress extensions for PHPStan

3287.8M898](/packages/szepeviktor-phpstan-wordpress)[ikvasnica/phpstan-clean-test

PHPStan extension with opinionated strict rules for better code in tests.

1520.1k](/packages/ikvasnica-phpstan-clean-test)[sidz/phpstan-rules

Set of PHPStan rules

31408.9k12](/packages/sidz-phpstan-rules)

PHPackages © 2026

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