infection/infection
PHP Mutation Testing library observed · 2026-08-28
Health v2 · maintenance only
99/100
- Activity 99
- Release rhythm 98
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 9
- age_days: 3352
- days_rel: 14
- days_push: 8
- n_releases_24m: 40
Adoption not part of the score
2235 stars · 190 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Infection is a mutation testing framework for PHP that mutates source code to find gaps in test suites. It computes a Mutation Score Indicator (MSI) and integrates with PHPUnit, Codeception, and PHPSpec, with CI enforcement via --min-msi.
Use cases
- measure how good my PHP test suite really is
- find untested code paths beyond line coverage
- enforce a minimum mutation score in CI
- mutate only lines changed in a pull request
- run mutation testing with PHPUnit or Codeception
- generate a test quality badge for my README
When to choose
- you have a PHP project with PHPUnit, PHPSpec, or Codeception tests
- line coverage looks high but you suspect weak assertions
- you want an MSI gate in CI or a quality badge
- you need git-diff-scoped mutation testing for PRs
When to avoid
- your project is not written in PHP
- your test suite is too slow to run repeatedly
- you only need basic coverage reports, not mutation analysis
Facets
library · maturity active
testing cli developer-tools testing developer-tools php cli cross-platform mutation-testing phpunit codeception phpspec test-quality msi ast code-coverage php
2 sources
- readme: https://github.com/infection/infection · fetched 2026-08-28 · d2e90d38c55d
- homepage: https://infection.github.io · fetched 2026-08-29 · e9834759d55a
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| infection/infection | main | 99 |
For agents
markdown · JSON · MCP: product_card(name="infection/infection")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem