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

ActivePhpstan-extension

surda/phpstan-rules
===================

Various PHPStan rules

v2.0.0(1y ago)027MITPHPPHP &gt;=8.0

Since Mar 10Pushed 1y ago1 watchersCompare

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

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

Extra PHPStan rules
===================

[](#extra-phpstan-rules)

[![Licence](https://camo.githubusercontent.com/472e743ad33ab5078a78939782fe2d2a2f58d98340fa67854b23ad15af7766bd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f73757264612f7068707374616e2d72756c65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/surda/phpstan-rules)[![Latest stable](https://camo.githubusercontent.com/1aec87740f893d0fa84dcfd4dbac29bcc5b97e8dc5dbb6fc9b18bc197b856971/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73757264612f7068707374616e2d72756c65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/surda/phpstan-rules)[![PHPStan](https://camo.githubusercontent.com/441b5874ce4df0a2defc892979c96c46889b69cb32119d04f0b48626349f8bc9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/phpstan/phpstan)

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

[](#installation)

The recommended way to is via Composer:

```
composer require --dev surda/phpstan-rules

```

Manual installation
-------------------

[](#manual-installation)

Include rules.neon in your project's PHPStan config:

```
includes:
    - vendor/surda/phpstan-rules/rules.neon
```

Rules
-----

[](#rules)

### disallowedFunctionCalls

[](#disallowedfunctioncalls)

Disallow Tracy functions dump(), bdump(), dumpe()

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance47

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Total

2

Last Release

390d ago

Major Versions

v1.0.0 → v2.0.02025-04-23

### Community

Maintainers

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

---

Top Contributors

[![surda](https://avatars.githubusercontent.com/u/588663?v=4)](https://github.com/surda "surda (2 commits)")

---

Tags

PHPStannettephpstan-rules

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/surda-phpstan-rules/health.svg)](https://phpackages.com/packages/surda-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)[ergebnis/phpstan-rules

Provides rules for phpstan/phpstan.

4428.9M187](/packages/ergebnis-phpstan-rules)[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)[ticketswap/phpstan-error-formatter

A minimalistic error formatter for PHPStan

87578.8k35](/packages/ticketswap-phpstan-error-formatter)[sidz/phpstan-rules

Set of PHPStan rules

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

PHPackages © 2026

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