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

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

kr0lik/phpstan-rules
====================

Provides additional rules for phpstan/phpstan.

3.0.0(1y ago)1462PHPPHP ^8.0CI passing

Since Oct 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/kr0lik/phpstan-rules)[ Packagist](https://packagist.org/packages/kr0lik/phpstan-rules)[ RSS](/packages/kr0lik-phpstan-rules/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (13)Versions (5)Used By (2)

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

[](#phpstan-rules)

Additional rules for phpstan/phpstan

Installation
============

[](#installation)

Run

```
composer require --dev kr0lik/phpstan-rules

```

Copy phpstan.neon:

```
cp ./vendor/kr0lik/phpstan-rules/phpstan.example ./phpstan.neon

```

Edit includes in phpstan.neon

Develop:

```
docker pull composer:2.2.20
docker run -v .:/app --rm composer:2.2.20 composer install
docker run -v .:/app --rm composer:2.2.20 vendor/bin/php-cs-fixer fix
docker run -v .:/app --rm composer:2.2.20 vendor/bin/phpstan analyse
docker run -v .:/app --rm composer:2.2.20 vendor/bin/phpunit tests
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance48

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

3

Last Release

383d ago

Major Versions

1.0.0 → 2.0.02023-06-01

2.0.0 → 3.0.02025-04-30

PHP version history (3 changes)1.0.0PHP ^7.1

2.0.0PHP &gt;=7.4

3.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/e0b0c887017cd70f427b564a667ef2433735f83c70f5ff987e2955c2c4962e60?d=identicon)[kr0lik](/maintainers/kr0lik)

---

Top Contributors

[![kr0lik](https://avatars.githubusercontent.com/u/12142976?v=4)](https://github.com/kr0lik "kr0lik (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[wp-cli/wp-cli-tests

WP-CLI testing framework

422.7M87](/packages/wp-cli-wp-cli-tests)[tomasvotruba/bladestan

PHPStan rule for static analysis of Blade templates

363584.5k4](/packages/tomasvotruba-bladestan)[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2021.0M277](/packages/drupal-core-dev)[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)
