Suggest a tool

Infection

Metrics as of , from the GitHub or GitLab API of each repository. Refreshed monthly.

What Infection is

Infection is a mutation testing framework for PHP. It mutates source code through changes to the abstract syntax tree, using a set of predefined mutators. Infection first checks that the test suite passes. For each mutant, it runs only the tests that cover the changed line and records whether they fail. Supported test frameworks are PHPUnit, PhpSpec, Codeception and Testo. It requires PHP 8.3 or later with Xdebug, phpdbg or pcov installed. Infection runs as a CLI tool from the project root. Its main metric is the Mutation Score Indicator, the share of mutations detected by tests. An online playground runs it in the browser.

Written from the project's README, read , and its documentation (see sources).

Category
Code quality and static analysis
License
BSD-3-Clause
Language
PHP
Changelog
Releases on GitHub

Repository metrics

Repository metrics
Stars2,2431
Forks1921
Open issues and PRs2141
Contributors1091
Commits in the last 90 days2341
Last commit2026-09-221
Last release0.35.4, 2026-09-021
Fetched

1 Fetched from the GitHub or GitLab API on . Hover a value for its own date.

Status

activeLast commit within 90 days of the fetch date.

Computed from the last commit date and the archive flag on the fetch date. See the status rules.

Alternatives

Listed code quality and static analysis tools, same primary language first, then by GitHub stars. Each line gives one fact from the tool's documentation where it differs from Infection's, with its source.

Questions

Is Infection open source?

Yes. Infection is released under BSD-3-Clause, an OSI-approved license, as reported by the GitHub API on 2026-09-22.

Is Infection maintained?

On 2026-09-22, the last commit to the default branch was on 2026-09-22, so the listed status is active. Rule: Last commit within 90 days of the fetch date.

How many GitHub stars does Infection have?

2,243 stars on 2026-09-22, from the GitHub API. The number is refreshed at each monthly update.

What language is Infection written in?

The repository's primary language, as reported by the GitHub API, is PHP.

Sources

  1. GitHub REST API: repository, read
  2. GitHub REST API: commits, read
  3. GitHub REST API: latest release, read
  4. GitHub REST API: contributors, read
  5. README, read
  6. Infection documentation: Introduction, read