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. [Testing &amp; Quality](/categories/testing)
4. /
5. surda/phpstan-rules

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

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

Various PHPStan rules

v2.0.0(1y ago)029MITPHPPHP &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 today

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 62% of packages

Maintenance44

Moderate activity, may be stable

Popularity8

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

436d 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.5k55.4M8.3k](/packages/larastan-larastan)[phpstan/phpstan-symfony

Symfony Framework extensions and rules for PHPStan

79475.7M2.2k](/packages/phpstan-phpstan-symfony)[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.

4853.5M91](/packages/shipmonk-dead-code-detector)[phpstan/phpstan-doctrine

Doctrine extensions for PHPStan

67272.8M1.4k](/packages/phpstan-phpstan-doctrine)[orrison/meliorstan

Provides PHPStan rules for improved code quality by detecting code smells and possible issues. In addition to enforcing particular naming and code style conventions to reduce bike-shedding.

1915.9k5](/packages/orrison-meliorstan)[wp-cli/wp-cli-tests

WP-CLI testing framework

423.1M141](/packages/wp-cli-wp-cli-tests)

PHPackages © 2026

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