FindSoftware

Infection

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

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 describes using it in a continuous integration server together with other code quality tools.

Identity

Status
Active
Maintainer
Maks Rafalko4
Maintained by
Individual4
First release
20179

Rendering and deploy

Runs as
Dev only6
Install with
PHAR download from the GitHub releases, Phive, composer global require infection/infection, Homebrew tap infection/homebrew-infection7

Releases

Current major version
Pre-1.08
Last release
2026-11-158

Adoption

GitHub stars
2,2722
Packagist downloads
36,329,04210
Contributors
11211
Dependent repositories
2,09912
Dependent packages
1,82612

Why these figures do not compare

Sources

  1. 2026-11-16: links, Categories, License, License model
    infection.github.io/
  2. 2026-11-16: links, Written in, GitHub stars
    api.github.com/repos/infection/infection
  3. 2026-11-16: links, Runtime
    infection.github.io/guide/
  4. 2026-11-16: Maintainer, Maintained by
    github.com/infection/infection/blob/master/LICENSE
  5. 2026-11-16: Minimum runtime
    github.com/infection/infection/blob/0.35.11/composer.json
  6. 2026-11-16: Runs as
    infection.github.io/guide/using-with-ci.html
  7. 2026-11-16: Install with
    infection.github.io/guide/installation.html
  8. 2026-11-16: Current major version, Last release
    api.github.com/repos/infection/infection/releases/latest
  9. 2026-11-16: First release
    api.github.com/repos/infection/infection/releases
  10. 2026-11-16: Packagist downloads
    packagist.org/packages/infection/infection.json
  11. 2026-11-16: Contributors
    api.github.com/repos/infection/infection/contributors?per_page=1
  12. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/packagist.org/packages/infection%2Finfection

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON