Skip to content

InfectionPHP Mutation Testing Framework

Find the tests you are missing. Infection mutates your source code and tells you which changes your test suite fails to catch.

InfectionInfection

Adopted across the PHP ecosystem

The standard for mutation testing in PHP

Infection is the tool the PHP community reaches for when line coverage stops being convincing — used by frameworks, libraries and application teams to prove their tests actually assert something.

36.2M+
installs to date 36,249,133 via Composer
2.1M
installs a month about 66,659 every day
2,797
packages depend on it listed as a dependency on Packagist
2,270
stars on GitHub infection/infection

Source: packagist.org/packages/infection/infection — as of 2026-11-15