PHPackages                             inspirecz/phpstan-ruleset - 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. inspirecz/phpstan-ruleset

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

inspirecz/phpstan-ruleset
=========================

INSPIRE phpstan ruleset

v3.1.1(6mo ago)217.8k↓52.4%1[4 issues](https://github.com/InspireCZ/phpstan-ruleset/issues)[1 PRs](https://github.com/InspireCZ/phpstan-ruleset/pulls)MITPHP

Since Aug 9Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/InspireCZ/phpstan-ruleset)[ Packagist](https://packagist.org/packages/inspirecz/phpstan-ruleset)[ RSS](/packages/inspirecz-phpstan-ruleset/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (6)Versions (19)Used By (0)

Inspire PHPStan ruleset
=======================

[](#inspire-phpstan-ruleset)

Set of PHPStan rules used by INSPIRE CZ developers.

v1, v3
------

[](#v1-v3)

Branches `v1` and `v3` is for Webspire 7 projects (`v3` is for PHPStan 2.\*).

Where is v2?
------------

[](#where-is-v2)

The v2 branch was originally created for Webspire 8–specific projects. Since Webspire 8 is no longer in active development and the branch has gone unmaintained, it has been deleted.

Rules
-----

[](#rules)

### DisableUnaryNegationOperatorRule

[](#disableunarynegationoperatorrule)

This rules prevents developers from using unary negation operator. Rule error identifier `unaryNegation.nowAllowed`.

```
❌ if (!$var) ...
```

```
👍 if (false === $var) ...
```

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance47

Moderate activity, may be stable

Popularity29

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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 ~115 days

Recently: every ~65 days

Total

18

Last Release

191d ago

Major Versions

v1.0.0 → v2.0.02021-04-06

v1.x-dev → v3.0.02025-04-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/0c233e9fe281989cae2e662f760d8b9796ed88c69f9d353ba9fb5c56017d81b5?d=identicon)[InspireCZ](/maintainers/InspireCZ)

---

Top Contributors

[![mlutonsky](https://avatars.githubusercontent.com/u/423848?v=4)](https://github.com/mlutonsky "mlutonsky (7 commits)")[![Theery1](https://avatars.githubusercontent.com/u/58081502?v=4)](https://github.com/Theery1 "Theery1 (1 commits)")

---

Tags

phpPHPStanruleset

### Embed Badge

![Health badge](/badges/inspirecz-phpstan-ruleset/health.svg)

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

###  Alternatives

[wp-cli/wp-cli-tests

WP-CLI testing framework

423.1M142](/packages/wp-cli-wp-cli-tests)[larastan/larastan

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

6.5k55.4M8.4k](/packages/larastan-larastan)[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)[mglaman/phpstan-drupal

Drupal extension and rules for PHPStan

20731.4M188](/packages/mglaman-phpstan-drupal)[calebdw/larastan

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

15118.7k4](/packages/calebdw-larastan)[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)

PHPackages © 2026

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