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

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

muqsit/generator-phpstan-rules
==============================

PHPStan rules bringing added Generator inspections

v1.0.4(1y ago)130MITPHPPHP ^8.1

Since Apr 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Muqsit/generator-phpstan-rules)[ Packagist](https://packagist.org/packages/muqsit/generator-phpstan-rules)[ RSS](/packages/muqsit-generator-phpstan-rules/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (6)Used By (0)

generator-phpstan-rules
=======================

[](#generator-phpstan-rules)

PHPStan rules bringing added Generator inspections, primarily targeting [SOF3/await-generator](https://github.com/SOF3/await-generator) projects. This extension introduces the following checks:

- Require generators be consumed (by a `foreach`, `yield from $g`, `...$g`, a function that accepts a `Generator` parameter, etc.) (finds unused generators).

### Installation

[](#installation)

This library is compatible with PHPStan's extension installer. Install it by running:

```
composer require --dev phpstan/extension-installer && \
composer require --dev muqsit/generator-phpstan-rules
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance42

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Total

5

Last Release

473d ago

PHP version history (2 changes)v1.0.0PHP ^8.2

v1.0.1PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/247134f60bf8c5c7c8a2f06b0ecea431a052614283aac5093b57bde51039e34a?d=identicon)[muqsit](/maintainers/muqsit)

---

Top Contributors

[![Muqsit](https://avatars.githubusercontent.com/u/15074389?v=4)](https://github.com/Muqsit "Muqsit (17 commits)")

---

Tags

phpstanphpstan-extensionphpstan-rulesstatic-analysisstatic-code-analysisstrongly-typed

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

Symfony Framework extensions and rules for PHPStan

78268.9M1.5k](/packages/phpstan-phpstan-symfony)[phpstan/phpstan-doctrine

Doctrine extensions for PHPStan

66466.6M1.1k](/packages/phpstan-phpstan-doctrine)[phpat/phpat

PHP Architecture Tester

1.2k3.5M32](/packages/phpat-phpat)[spaze/phpstan-disallowed-calls

PHPStan rules to detect disallowed method &amp; function calls, constant, namespace, attribute, property &amp; superglobal usages, with powerful rules to re-allow a call or a usage in places where it should be allowed.

33120.0M375](/packages/spaze-phpstan-disallowed-calls)[mglaman/phpstan-drupal

Drupal extension and rules for PHPStan

20729.0M124](/packages/mglaman-phpstan-drupal)

PHPackages © 2026

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