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

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

contributte/phpstan
===================

Opinionated set of PHPStan extensions &amp; rules for all fans.

v0.3.1(5mo ago)2755.5k↓89%220MITPHPPHP &gt;=8.2CI passing

Since Jun 4Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/contributte/phpstan)[ Packagist](https://packagist.org/packages/contributte/phpstan)[ Docs](https://github.com/contributte/phpstan)[ Fund](https://contributte.org/partners.html)[ GitHub Sponsors](https://github.com/f3l1x)[ RSS](/packages/contributte-phpstan/feed)WikiDiscussions master Synced 3d ago

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

[![](https://camo.githubusercontent.com/2a3a6b53f9d3db39572fb52365367d6186e9dfc2203f8d630dc1d8d96c7267f3/68747470733a2f2f686561746261646765722e6e6f772e73682f6769746875622f726561646d652f636f6e74726962757474652f7068707374616e2f)](https://camo.githubusercontent.com/2a3a6b53f9d3db39572fb52365367d6186e9dfc2203f8d630dc1d8d96c7267f3/68747470733a2f2f686561746261646765722e6e6f772e73682f6769746875622f726561646d652f636f6e74726962757474652f7068707374616e2f)

 [![](https://camo.githubusercontent.com/58b29c6af069fdacf5d1eb94e1fe7d6a7d815964dc8a5f59d62ae479359f4a8c/68747470733a2f2f62616467656e2e6e65742f6769746875622f636865636b732f636f6e74726962757474652f7068707374616e2f6d61737465723f63616368653d333030)](https://github.com/contributte/phpstan/actions) [![](https://camo.githubusercontent.com/f4296b7ed09514643d905490310db515fcf21310b9d3b5390d57ab559bb7d772/68747470733a2f2f62616467656e2e6e65742f636f766572616c6c732f632f6769746875622f636f6e74726962757474652f7068707374616e3f63616368653d333030)](https://coveralls.io/r/contributte/phpstan) [![](https://camo.githubusercontent.com/b7dd6fcb1fb90d8873941c6bd394e43563dae0e4696722a0634dedca6ff87e3a/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f646d2f636f6e74726962757474652f7068707374616e)](https://packagist.org/packages/contributte/phpstan) [![](https://camo.githubusercontent.com/babd8c9811718d67dbcc544dced449c2967180190cc95fbe4a45f797d8954ff9/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f636f6e74726962757474652f7068707374616e)](https://packagist.org/packages/contributte/phpstan)

 [![](https://camo.githubusercontent.com/9ac0c6ceec002926e13825f8c26c4afa1991125ffd79a400ecee6eec242f2d1c/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f636f6e74726962757474652f7068707374616e)](https://packagist.org/packages/contributte/phpstan) [![](https://camo.githubusercontent.com/0c0b62b0a2aabc5860ad47ecd876100e59411fd1f41ffa5a53d582aeb96a1a08/68747470733a2f2f62616467656e2e6e65742f6769746875622f6c6963656e73652f636f6e74726962757474652f7068707374616e)](https://github.com/contributte/phpstan) [![](https://camo.githubusercontent.com/a8b1cd856d7d396fdebbe46947cc3507490acc267a02361e5e53bb7b820c95c3/68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f6769747465722f6379616e)](https://bit.ly/ctteg) [![](https://camo.githubusercontent.com/86d6416fc04f8bcc3daa7bf881526b9953b9726b1164d05c157c8713e3a73418/68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f666f72756d2f79656c6c6f77)](https://bit.ly/cttfo) [![](https://camo.githubusercontent.com/5d170ab94e6d594609561e16fe0f9e4293968fbd4dfcfafc5e11efc1415ef09c/68747470733a2f2f62616467656e2e6e65742f62616467652f73706f6e736f722f646f6e6174696f6e732f463936383534)](https://contributte.org/partners.html)

Website 🚀 [contributte.org](https://contributte.org) | Contact 👨🏻‍💻 [f3l1x.io](https://f3l1x.io) | Twitter 🐦 [@contributte](https://twitter.com/contributte)

Usage
-----

[](#usage)

To install latest version of `contributte/phpstan` use [Composer](https://getcomposer.org).

```
composer require --dev contributte/phpstan
```

Documentation
-------------

[](#documentation)

For details on how to use this package, check out our [documentation](.docs).

Versions
--------

[](#versions)

StateVersionBranchNettePHPdev^0.4.0master3.3+&gt;=8.2stable^0.3.0master3.3+&gt;=8.2Development
-----------

[](#development)

See [how to contribute](https://contributte.org) to this package. This package is currently maintained by these authors.

[ ![](https://avatars2.githubusercontent.com/u/538058?v=3&s=80)](https://github.com/f3l1x)---

Consider to [support](https://contributte.org/partners) **contributte** development team. Also thank you for using this package.

###  Health Score

48

—

FairBetter than 93% of packages

Maintenance69

Regular maintenance activity

Popularity39

Limited adoption so far

Community29

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.5% 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 ~315 days

Total

4

Last Release

179d ago

PHP version history (2 changes)v0.1.0PHP &gt;=8.0

v0.3.0PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/538058?v=4)[Milan Šulc](/maintainers/f3l1x)[@f3l1x](https://github.com/f3l1x)

---

Top Contributors

[![f3l1x](https://avatars.githubusercontent.com/u/538058?v=4)](https://github.com/f3l1x "f3l1x (6 commits)")[![felixure](https://avatars.githubusercontent.com/u/23188301?v=4)](https://github.com/felixure "felixure (4 commits)")[![Roman3349](https://avatars.githubusercontent.com/u/4655467?v=4)](https://github.com/Roman3349 "Roman3349 (1 commits)")

---

Tags

PHPStanextensionsrulesstrictcontributte

### Embed Badge

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

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

###  Alternatives

[wp-cli/wp-cli-tests

WP-CLI testing framework

423.1M142](/packages/wp-cli-wp-cli-tests)[larastan/larastan

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

6.5k55.4M8.5k](/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.

4853.5M91](/packages/shipmonk-dead-code-detector)[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.

1915.9k5](/packages/orrison-meliorstan)[calebdw/larastan

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

15118.7k4](/packages/calebdw-larastan)

PHPackages © 2026

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