PHPackages                             xunitpatterns/xunitpatterns-stan - 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. xunitpatterns/xunitpatterns-stan

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

xunitpatterns/xunitpatterns-stan
================================

PHPStan linting for PHPUnit based on the smells in the XUnit Patterns book by Gerard Meszaros

171[2 PRs](https://github.com/ethancarlsson/xunitpatterns-stan/pulls)PHP

Since Jun 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ethancarlsson/xunitpatterns-stan)[ Packagist](https://packagist.org/packages/xunitpatterns/xunitpatterns-stan)[ RSS](/packages/xunitpatterns-xunitpatterns-stan/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHPUnitPatternsStan
===================

[](#phpunitpatternsstan)

This is an extension for PHPStan that adds some rules based on the smells in the XUnit Patterns book by Gerard Meszaros.

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

[](#installation)

To use this extension, require it in Composer:

```
composer require --dev xunitpatterns/xunitpatterns-stan

```

That is all you need to do if you have [phpstan/extension-installer](https://github.com/phpstan/extension-installer)then that's all you need to do.

Otherwise, you will need to include the rules manually in your phpstan.neon file.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity25

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://www.gravatar.com/avatar/2c8278e0060491abd1dca33274b5506b3e9410b1cd00b063534e852684ac6085?d=identicon)[ethancarlsson](/maintainers/ethancarlsson)

---

Top Contributors

[![ethancarlsson](https://avatars.githubusercontent.com/u/63494553?v=4)](https://github.com/ethancarlsson "ethancarlsson (32 commits)")

### Embed Badge

![Health badge](/badges/xunitpatterns-xunitpatterns-stan/health.svg)

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

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)

PHPackages © 2026

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