PHPackages                             oneserv/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. oneserv/phpstan-ruleset

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

oneserv/phpstan-ruleset
=======================

An opinionated ruleset for PHPStan to enforce Oneserv Coding Standards.

v2.0.0(3y ago)11.4k[5 issues](https://github.com/oneserv/phpstan-ruleset/issues)[1 PRs](https://github.com/oneserv/phpstan-ruleset/pulls)MITPHPPHP ^8.1

Since Sep 15Pushed 1y agoCompare

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

READMEChangelog (4)Dependencies (13)Versions (7)Used By (0)

phpstan-ruleset - Opionated ruleset for [PHPStan](https://github.com/phpstan/phpstan)
=====================================================================================

[](#phpstan-ruleset---opionated-ruleset-for-phpstan)

[![Latest Stable Version](https://camo.githubusercontent.com/e388c00a6aa23c86a18b58f9fd87671bab5b3b2ede1baa399be9aa21f608c5d9/687474703a2f2f706f7365722e707567782e6f72672f6f6e65736572762f7068707374616e2d72756c657365742f76)](https://packagist.org/packages/oneserv/phpstan-ruleset)[![License](https://camo.githubusercontent.com/08dda536f6b16a68e6c138bdb7f1d1e66e1dd990a52438b5aed2679198f4bbc5/687474703a2f2f706f7365722e707567782e6f72672f6f6e65736572762f7068707374616e2d72756c657365742f6c6963656e7365)](https://packagist.org/packages/oneserv/phpstan-ruleset)[![PHP Version Require](https://camo.githubusercontent.com/384900825946158893ca1517c5970c47dc86dcfba8e46fed26470e0bf6841c38/687474703a2f2f706f7365722e707567782e6f72672f6f6e65736572762f7068707374616e2d72756c657365742f726571756972652f706870)](https://packagist.org/packages/oneserv/phpstan-ruleset)[![CodeFactor](https://camo.githubusercontent.com/d55daeaebdf08462b106fa7fd477721bd37070190d74ac96912d34ac3c586be9/68747470733a2f2f7777772e636f6465666163746f722e696f2f7265706f7369746f72792f6769746875622f6f6e65736572762f7068707374616e2d72756c657365742f6261646765)](https://www.codefactor.io/repository/github/oneserv/phpstan-ruleset)[![codecov](https://camo.githubusercontent.com/ab83b4890c52a14c09583c9312ccbe8ee89af4b232411fc127f9ef33ee351e21/68747470733a2f2f636f6465636f762e696f2f67682f6f6e65736572762f7068707374616e2d72756c657365742f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d33555941563056594636)](https://codecov.io/gh/oneserv/phpstan-ruleset)[![PHPStan](https://camo.githubusercontent.com/3d63a7e6e05ca0dafbdd1cb2da881539a5ccd543deb25f6d8d1174cd11815bfe/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c2532306d61782d627269676874677265656e2e7376673f7374796c653d666c6174)](https://phpstan.org/)[![Total Downloads](https://camo.githubusercontent.com/72a9ab6aa64afc74a907d59d25f9df7fe832b89fcf4fb5e3b4cdc4cc727e6523/687474703a2f2f706f7365722e707567782e6f72672f6f6e65736572762f7068707374616e2d72756c657365742f646f776e6c6f616473)](https://packagist.org/packages/oneserv/phpstan-ruleset)

This is an opinionated ruleset for PHPStan to enforce Oneserv Coding Standards.

See [Rules Overview](rules_overview.md) for a list and explanation of all rules.

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

[](#installation)

To use this extension, require it in [Composer](https://getcomposer.org/):

```
composer require --dev oneserv/phpstan-ruleset
```

If you also install [phpstan/extension-installer](https://github.com/phpstan/extension-installer) then you're all set!

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance9

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 92.3% 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 ~87 days

Total

5

Last Release

1402d ago

Major Versions

v0.12.1 → v1.0.02021-11-18

v1.0.1 → v2.0.02022-08-31

PHP version history (2 changes)v0.12.0PHP ^7.4|^8.0

v2.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/675bdf47ff4071b9090a5c30efb71e1499bb0ddd2b2c66b5f5507921f290836a?d=identicon)[oneserv-web](/maintainers/oneserv-web)

---

Top Contributors

[![t-heuser](https://avatars.githubusercontent.com/u/53174153?v=4)](https://github.com/t-heuser "t-heuser (12 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (1 commits)")

---

Tags

phpphpstanrulesetstatic-analysisstatic-analysis-pluginstatic-code-analysis

###  Code Quality

TestsPHPUnit

Type Coverage Yes

### Embed Badge

![Health badge](/badges/oneserv-phpstan-ruleset/health.svg)

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

###  Alternatives

[larastan/larastan

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

6.5k55.4M8.4k](/packages/larastan-larastan)[phpstan/phpstan-symfony

Symfony Framework extensions and rules for PHPStan

79475.7M2.2k](/packages/phpstan-phpstan-symfony)[phpstan/phpstan-doctrine

Doctrine extensions for PHPStan

67272.8M1.4k](/packages/phpstan-phpstan-doctrine)[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k28.9M2.4k](/packages/infection-infection)[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.

4853.5M91](/packages/shipmonk-dead-code-detector)[tomasvotruba/cognitive-complexity

PHPStan rules to measure cognitive complexity of your classes and methods

1635.6M289](/packages/tomasvotruba-cognitive-complexity)

PHPackages © 2026

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