# Infection

Mutation testing tool for PHP that changes the source code and reports the changes the test suite does not catch.


Source: https://findsoftware.frbit.cloud/infection/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://infection.github.io
- repository: https://github.com/infection/infection
- docs: https://infection.github.io/guide/
- x: https://twitter.com/infection_php
- mastodon: https://mastodon.social/@infection_php
- discord: https://discord.gg/ZUmyHTJ
- forum: https://github.com/infection/infection/discussions

### Identity

- status: active
- maintainer: Maks Rafalko
- maintainerType: individual
- parent: unknown
- firstRelease: 2017
- hqCountry: unknown

### Kind

- category: testing
- hosting: not applicable
- language: php
- runtime: php
- runtimeMin: php 8.3
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: local
- renderingModes: not applicable
- installMethod: PHAR download from the GitHub releases, Phive, composer global require infection/infection, Homebrew tap infection/homebrew-infection

### License

- licenseModel: open-source
- license: BSD-3-Clause

### Releases

- currentMajor: 0
- latestReleaseDate: 2026-11-15

### Adoption

- githubStargazers: 2272
- packagistDownloads: 36329042
- npmWeeklyDownloads: not applicable
- contributors: 112
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 2099
- dependentPackages: 1826

### Sources

- urls: https://infection.github.io/ (read 2026-11-16)
- urls: https://api.github.com/repos/infection/infection (read 2026-11-16)
- urls: https://infection.github.io/guide/ (read 2026-11-16)
- maintainer: https://github.com/infection/infection/blob/master/LICENSE (read 2026-11-16)
- maintainerType: https://github.com/infection/infection/blob/master/LICENSE (read 2026-11-16)
- language: https://api.github.com/repos/infection/infection (read 2026-11-16)
- category: https://infection.github.io/ (read 2026-11-16)
- runtime: https://infection.github.io/guide/ (read 2026-11-16)
- runtimeMin: https://github.com/infection/infection/blob/0.35.11/composer.json (read 2026-11-16)
- runsAs: https://infection.github.io/guide/using-with-ci.html (read 2026-11-16)
- installMethod: https://infection.github.io/guide/installation.html (read 2026-11-16)
- installMethod: https://infection.github.io/guide/installation.html (read 2026-11-16)
- installMethod: https://infection.github.io/guide/installation.html (read 2026-11-16)
- installMethod: https://infection.github.io/guide/installation.html (read 2026-11-16)
- license: https://infection.github.io/ (read 2026-11-16)
- licenseModel: https://infection.github.io/ (read 2026-11-16)
- currentMajor: https://api.github.com/repos/infection/infection/releases/latest (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/infection/infection/releases/latest (read 2026-11-16)
- firstRelease: https://api.github.com/repos/infection/infection/releases (read 2026-11-16)
- packagistDownloads: https://packagist.org/packages/infection/infection.json (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/infection/infection (read 2026-11-16)
- contributors: https://api.github.com/repos/infection/infection/contributors?per_page=1 (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/infection%2Finfection (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/infection%2Finfection (read 2026-11-16)

## Notes

Infection mutates PHP source code through changes to its abstract syntax tree and reports the mutations the test suite still passes. The guide names PHPUnit, PhpSpec, Codeception and Testo as the test frameworks it supports, and the PHAR download bundles all of them.

## Worth knowing

Infection needs Xdebug, phpdbg or pcov enabled alongside PHP. The [CI guide](https://infection.github.io/guide/using-with-ci.html) describes using it in a continuous integration server together with other code quality tools.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
