PHPackages                             lifephp/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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. lifephp/phpstan-rules

ActivePhpstan-extension[Validation &amp; Sanitization](/categories/validation)

lifephp/phpstan-rules
=====================

Reusable generic PHPStan rules, starting with #\[CreateBy\] factory-only instantiation enforcement.

v1.0.0(today)03↑2900%MITPHP &gt;=8.4

Since Sep 1Compare

[ Source](https://gitlab.com/life9/php-life/phpstan-rules)[ Packagist](https://packagist.org/packages/lifephp/phpstan-rules)[ Docs](https://gitlab.com/life9/php-life/phpstan-rules)[ RSS](/packages/lifephp-phpstan-rules/feed)WikiDiscussions Synced today

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

### README not available

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

###  Health Score

42

FairBetter than 88% of packages

Maintenance100

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

0d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/99e5f00c795c0fbea18c13903e5bf4a0e610d396a128884cc3fde1077a2b0098?d=identicon)[TonnyJ](/maintainers/TonnyJ)

---

Tags

phpPHPStanstatic analysisrules

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[larastan/larastan

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

6.5k66.6M11.3k](/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.

5124.9M120](/packages/shipmonk-dead-code-detector)[phpstan/phpstan-doctrine

Doctrine extensions for PHPStan

67577.1M1.6k](/packages/phpstan-phpstan-doctrine)[staabm/phpstan-dba

2972.7M2](/packages/staabm-phpstan-dba)[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.

1924.4k7](/packages/orrison-meliorstan)

PHPackages © 2026

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