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

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

pmarki/phpstan-rules
====================

Set of additional PHPStan rules

02PHPCI passing

Since Apr 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/pmarki/phpstan-rules)[ Packagist](https://packagist.org/packages/pmarki/phpstan-rules)[ RSS](/packages/pmarki-phpstan-rules/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

PHPStan Rules
=============

[](#phpstan-rules)

Set of additional PHPStan rules

*For legacy codebase*

- check if property and constant shouldn't be set as protected (when is not inherited or class is not abstract)
- check if property name starts with underscore
- check if constant name is uppercase

*PHPMD rules*

- check for boolean argument flag
- maximum number of parameters (default 10)

Installation
------------

[](#installation)

Run `composer require --dev pmarki/phpstan-rules`

Edit your phpstan configuration file and add

```
includes:
    - vendor/pmarki/phpstan-rules/extension.neon

```

Additional configuration:

```
parameters:
    pmarki:
        excessiveParameterListRule:
            maxNumberOfParameters: 10

```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13764826?v=4)[Piotr Markiewicz](/maintainers/pmarki)[@pmarki](https://github.com/pmarki)

---

Top Contributors

[![pmarki](https://avatars.githubusercontent.com/u/13764826?v=4)](https://github.com/pmarki "pmarki (8 commits)")

### Embed Badge

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

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

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14429.2M361](/packages/dms-phpunit-arraysubset-asserts)[gong023/assert_chain

enable you to use phpunit assert with method chain

1478.9k3](/packages/gong023-assert-chain)

PHPackages © 2026

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