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.

33.9M+
installs to date 33,937,286 via Composer
1.8M
installs a month about 76,123 every day
2,521
packages depend on it listed as a dependency on Packagist
2,259
stars on GitHub infection/infection

Source: packagist.org/packages/infection/infection — as of 2026-10-14