PHPackages                             infection/infection - 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. infection/infection

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

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.

0.32.6(2mo ago)2.2k26.2M—3.8%183[166 issues](https://github.com/infection/infection/issues)[42 PRs](https://github.com/infection/infection/pulls)20BSD-3-ClausePHPPHP ^8.2CI passing

Since Jul 1Pushed today29 watchersCompare

[ Source](https://github.com/infection/infection)[ Packagist](https://packagist.org/packages/infection/infection)[ GitHub Sponsors](https://github.com/infection)[ Fund](https://opencollective.com/infection)[ RSS](/packages/infection-infection/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (80)Versions (224)Used By (20)

[![Minimum PHP version: 8.3.0](https://camo.githubusercontent.com/f934d7fe7e76e458d3e81ffa9653e7373057016c68af15cd3e1ec27c28772b8e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e332e302532422d626c75652e737667)](https://packagist.org/packages/infection/infection)[![Latest Stable Version](https://camo.githubusercontent.com/dff4551b7d97d4736b7a9e706f0f62f85c69709143a15d264a3fe74517ee8c18/68747470733a2f2f706f7365722e707567782e6f72672f696e66656374696f6e2f696e66656374696f6e2f762f737461626c65)](https://packagist.org/packages/infection/infection)[![Unit & Integration Tests](https://github.com/infection/infection/actions/workflows/tests.yaml/badge.svg)](https://github.com/infection/infection/actions/workflows/tests.yaml)[![Infection MSI](https://camo.githubusercontent.com/d8bd1de584d101a4426b74482d68a569321d255bc749a8186b1903abf94dd15c/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246696e66656374696f6e253246696e66656374696f6e2532466d6173746572)](https://infection.github.io)[![StandWithUkraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://github.com/vshymanskyy/StandWithUkraine/)

Infection - Mutation Testing framework
======================================

[](#infection---mutation-testing-framework)

Please read documentation here: [infection.github.io](http://infection.github.io)

- Twitter: [@infection\_php](http://twitter.com/infection_php)
- Mastodon: [@infection\_php](https://mastodon.social/@infection_php)
- Discord:
- [Playground](https://infection-php.dev/) - try it right in your browser!

### Contributing

[](#contributing)

Infection is an open source project that welcomes pull requests and issues from anyone. Before opening pull requests, please consider reading our short [Contribution Guide](.github/CONTRIBUTING.md).

### Sponsors

[](#sponsors)

Want your logo here? [Learn more »](https://infection.github.io/guide/github-sponsors.html)

#### Companies

[](#companies)

[![](https://camo.githubusercontent.com/0b501c68a7c5932da29da278da9e0cc68bcd73339260a227edc539aee3fb8d7f/68747470733a2f2f6173736574732e746573746d752e61692f7265736f75726365732f696d616765732f6c6f676f732f626c61636b2d6c6f676f2e706e67)](https://www.testmuai.com/?utm_medium=sponsor&utm_source=infection)[![](https://avatars.githubusercontent.com/u/37436231?s=200&v=4)](https://github.com/wwwoda)[![](https://github.com/enrise/.github/raw/master/images/logo.png?raw=true)](https://github.com/Enrise)[![](https://camo.githubusercontent.com/4c4fc477ad4dd30bbd17f8c797cd97a7cf6aa2dcad20872973e70bc31ac03f15/68747470733a2f2f7265736f75726365732e6a6574627261696e732e636f6d2f73746f726167652f70726f64756374732f636f6d70616e792f6272616e642f6c6f676f732f6a6574627261696e732e706e67 "JetBrains - free licenses for core developers")](https://jetbrains.com)[![](doc/assets/sentry.png)](https://sentry.io)[![](doc/assets/tideways-logo.png)](https://tideways.com)

#### Individuals

[](#individuals)

The full list of awesome Infection sponsors is here:

### Credits

[](#credits)

This project is highly inspired from Pádraic Brady ([@padraic](https://github.com/padraic))'s [Humbug library](https://github.com/humbug/humbug). Humbug has since then been discontinued in favour of this project.

###  Health Score

81

—

ExcellentBetter than 100% of packages

Maintenance91

Actively maintained with recent releases

Popularity76

Solid adoption and visibility

Community64

Healthy contributor diversity

Maturity85

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~11 days

Total

190

Last Release

81d ago

PHP version history (11 changes)0.1.0PHP ^7.0

0.10.0-beta.1PHP ^7.1

0.12.0PHP ^7.1.3

0.14.0PHP ^7.2.9

0.16.0-rc.1PHP ^7.3

0.18.2PHP ^7.3 || ^8.0

0.19.0PHP ^7.4 || ^8.0

0.22.0PHP ^7.4.7 || ^8.0

0.26.7PHP ^8.0

0.26.20PHP ^8.1

0.29.10PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/8cabc9efd157e2b47aa5aa9830180f5ebd07813cc3e93ff1a9993b2c3d264909?d=identicon)[localheinz](/maintainers/localheinz)

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

![](https://www.gravatar.com/avatar/a0196ce472ed16a55b72aa7f9f9956bc6e68fa519abf975caffc9fcb5fa320df?d=identicon)[borN\_free](/maintainers/borN_free)

![](https://www.gravatar.com/avatar/6fbf458a1f05f8ac5a3c8f6c5426abe81084b7077b24955747b09c35f6c983be?d=identicon)[theofidry](/maintainers/theofidry)

![](https://avatars.githubusercontent.com/u/14289961?v=4)[Gert de Pagter](/maintainers/BackEndTea)[@BackEndTea](https://github.com/BackEndTea)

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

---

Top Contributors

[![theofidry](https://avatars.githubusercontent.com/u/5175937?v=4)](https://github.com/theofidry "theofidry (760 commits)")[![maks-rafalko](https://avatars.githubusercontent.com/u/3725595?v=4)](https://github.com/maks-rafalko "maks-rafalko (638 commits)")[![sanmai](https://avatars.githubusercontent.com/u/139488?v=4)](https://github.com/sanmai "sanmai (291 commits)")[![private-packagist[bot]](https://avatars.githubusercontent.com/in/727?v=4)](https://github.com/private-packagist[bot] "private-packagist[bot] (176 commits)")[![BackEndTea](https://avatars.githubusercontent.com/u/14289961?v=4)](https://github.com/BackEndTea "BackEndTea (127 commits)")[![sidz](https://avatars.githubusercontent.com/u/1302230?v=4)](https://github.com/sidz "sidz (105 commits)")[![staabm](https://avatars.githubusercontent.com/u/120441?v=4)](https://github.com/staabm "staabm (105 commits)")[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (80 commits)")[![kubawerlos](https://avatars.githubusercontent.com/u/9282069?v=4)](https://github.com/kubawerlos "kubawerlos (23 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (15 commits)")[![Slamdunk](https://avatars.githubusercontent.com/u/152236?v=4)](https://github.com/Slamdunk "Slamdunk (8 commits)")[![Fenikkusu](https://avatars.githubusercontent.com/u/5033618?v=4)](https://github.com/Fenikkusu "Fenikkusu (7 commits)")[![romm](https://avatars.githubusercontent.com/u/6342901?v=4)](https://github.com/romm "romm (6 commits)")[![Landerstraeten](https://avatars.githubusercontent.com/u/5587595?v=4)](https://github.com/Landerstraeten "Landerstraeten (5 commits)")[![johnstevenson](https://avatars.githubusercontent.com/u/881777?v=4)](https://github.com/johnstevenson "johnstevenson (5 commits)")[![MidnightDesign](https://avatars.githubusercontent.com/u/743172?v=4)](https://github.com/MidnightDesign "MidnightDesign (5 commits)")[![sasezaki](https://avatars.githubusercontent.com/u/42755?v=4)](https://github.com/sasezaki "sasezaki (4 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (4 commits)")[![duncan3dc](https://avatars.githubusercontent.com/u/546811?v=4)](https://github.com/duncan3dc "duncan3dc (4 commits)")[![siad007](https://avatars.githubusercontent.com/u/2149445?v=4)](https://github.com/siad007 "siad007 (4 commits)")

---

Tags

astcoverageinfectionmutantmutationmutation-analysismutation-testingphptest-frameworktestingtestingunit testingcoveragemutation testingmutantmutation framework

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[laravel/framework

The Laravel Framework.

34.7k509.9M17.0k](/packages/laravel-framework)[phpbench/phpbench

PHP Benchmarking Framework

2.0k13.0M627](/packages/phpbench-phpbench)[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19562.3M1.3k](/packages/drupal-core)[humbug/box

Fast, zero config application bundler with PHARs.

1.3k801.5k69](/packages/humbug-box)

PHPackages © 2026

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