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.

Fund package maintenance!
Open Collective

Installs: 13 254 619

Dependents: 1 731

Suggesters: 5

Security: 0

Stars: 1 989

Watchers: 35

Forks: 154

Open Issues: 113

0.28.1 2024-03-25 09:50 UTC

This package is auto-updated.

Last update: 2024-05-22 08:25:48 UTC


Minimum PHP version: 8.1.0 Latest Stable Version Continuous Integration Build Status Scrutinizer Code Quality Infection MSI codecov Slack channel: #infection on the Symfony slack StandWithUkraine

Infection - Mutation Testing framework

Please read documentation here:


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.


This project is highly inspired from Pádraic Brady (@padraic)'s Humbug library. Humbug has since then been discontinued in favour of this project.