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(4mo ago)216.9k↓42.9%1[4 issues](https://github.com/InspireCZ/phpstan-ruleset/issues)[1 PRs](https://github.com/InspireCZ/phpstan-ruleset/pulls)MITPHP

Since Aug 9Pushed 4mo 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 1mo ago

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

43

—

FairBetter than 91% of packages

Maintenance54

Moderate activity, may be stable

Popularity29

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

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

145d 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

[larastan/larastan

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

6.4k43.5M5.2k](/packages/larastan-larastan)[wp-cli/wp-cli-tests

WP-CLI testing framework

422.7M87](/packages/wp-cli-wp-cli-tests)[yamadashy/phpstan-friendly-formatter

Simple error formatter for PHPStan that display code frame

64573.8k34](/packages/yamadashy-phpstan-friendly-formatter)[calebdw/larastan

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

1484.6k3](/packages/calebdw-larastan)[sci3ma/symfony-grumphp

Configured GrumPHP with bunch of tools for static code analysis Symfony Framework

196.7k](/packages/sci3ma-symfony-grumphp)

PHPackages © 2026

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