infection / infection
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!
infection
Open Collective
Installs: 22 468 885
Dependents: 1 800
Suggesters: 5
Security: 0
Stars: 2 134
Watchers: 33
Forks: 169
Open Issues: 168
Requires
- php: ^8.2
- composer-runtime-api: ^2.0
- ext-dom: *
- ext-json: *
- ext-libxml: *
- ext-mbstring: *
- colinodell/json5: ^3.0
- composer/xdebug-handler: ^3.0
- fidry/cpu-core-counter: ^1.0
- infection/abstract-testframework-adapter: ^0.5.0
- infection/extension-installer: ^0.1.0
- infection/include-interceptor: ^0.2.5
- infection/mutator: ^0.4
- justinrainbow/json-schema: ^6.0
- nikic/php-parser: ^5.3
- ondram/ci-detector: ^4.1.0
- sanmai/di-container: ^0.1.4
- sanmai/duoclock: ^0.1.0
- sanmai/later: ^0.1.7
- sanmai/pipeline: ^7.0
- sebastian/diff: ^4.0 || ^5.0 || ^6.0 || ^7.0
- symfony/console: ^6.4 || ^7.0
- symfony/filesystem: ^6.4 || ^7.0
- symfony/finder: ^6.4 || ^7.0
- symfony/process: ^6.4 || ^7.0
- thecodingmachine/safe: ^v3.0
- webmozart/assert: ^1.11
Requires (Dev)
- ext-simplexml: *
- fidry/makefile: ^1.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.1
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-strict-rules: ^2.0
- phpstan/phpstan-webmozart-assert: ^2.0
- phpunit/phpunit: ^11.5.27
- rector/rector: ^2.0
- shipmonk/dead-code-detector: ^0.12.0
- shipmonk/name-collision-detector: ^2.1
- sidz/phpstan-rules: ^0.5.1
- symfony/yaml: ^6.4 || ^7.0
- thecodingmachine/phpstan-safe-rule: ^1.4
Conflicts
- antecedent/patchwork: <2.1.25
- dg/bypass-finals: <1.4.1
- dev-master
- 0.31.x-dev
- 0.31.2
- 0.31.1
- 0.31.0
- 0.30.x-dev
- 0.30.3
- 0.30.2
- 0.30.1
- 0.30.0
- 0.29.x-dev
- 0.29.14
- 0.29.13
- 0.29.12
- 0.29.11
- 0.29.10
- 0.29.9
- 0.29.8
- 0.29.7
- 0.29.6
- 0.29.5
- 0.29.4
- 0.29.3
- 0.29.2
- 0.29.1
- 0.29.0
- 0.28.x-dev
- 0.28.1
- 0.28.0
- 0.27.x-dev
- 0.27.11
- 0.27.10
- 0.27.9
- 0.27.8
- 0.27.7
- 0.27.6
- 0.27.5
- 0.27.4
- 0.27.3
- 0.27.2
- 0.27.1
- 0.27.0
- 0.26.x-dev
- 0.26.21
- 0.26.20
- 0.26.19
- 0.26.18
- 0.26.17
- 0.26.16
- 0.26.15
- 0.26.14
- 0.26.13
- 0.26.12
- 0.26.11
- 0.26.10
- 0.26.9
- 0.26.8
- 0.26.7
- 0.26.6
- 0.26.5
- 0.26.4
- 0.26.3
- 0.26.2
- 0.26.1
- 0.26.0
- 0.25.x-dev
- 0.25.6
- 0.25.5
- 0.25.4
- 0.25.3
- 0.25.2
- 0.25.1
- 0.25.0
- 0.24.x-dev
- 0.24.0
- 0.23.x-dev
- 0.23.0
- 0.22.x-dev
- 0.22.1
- 0.22.0
- 0.21.x-dev
- 0.21.5
- 0.21.4
- 0.21.3
- 0.21.2
- 0.21.1
- 0.21.0
- 0.20.x-dev
- 0.20.2
- 0.20.1
- 0.20.0
- 0.19.x-dev
- 0.19.2
- 0.19.1
- 0.19.0
- 0.18.2
- 0.18.1
- 0.18
- 0.17.7
- 0.17.6
- 0.17.5
- 0.17.4
- 0.17.3
- 0.17.2
- 0.17.1
- 0.17.0
- 0.16.6
- 0.16.5
- 0.16.4
- 0.16.3
- 0.16.2
- 0.16.1
- 0.16.0
- 0.16.0-rc.2
- 0.16.0-rc.1
- 0.15.3
- 0.15.2
- 0.15.1
- 0.15.0
- 0.14.4
- 0.14.3
- 0.14.2
- 0.14.1
- 0.14.0
- 0.13.6
- 0.13.5
- 0.13.4
- 0.13.3
- 0.13.2
- 0.13.1
- 0.13.0
- 0.12.2
- 0.12.1
- 0.12.0
- 0.11.5
- 0.11.4
- 0.11.3
- 0.11.2
- 0.11.1
- 0.11.0
- 0.10.6
- 0.10.5
- 0.10.4
- 0.10.3
- 0.10.2
- 0.10.1
- 0.10.0
- 0.10.0-beta.4
- 0.10.0-beta.3
- 0.10.0-beta.2
- 0.10.0-beta.1
- 0.9.3
- 0.9.2
- 0.9.1
- 0.9.0
- 0.9.0-beta.3
- 0.9.0-beta.2
- 0.9.0-beta.1
- 0.9.0-beta
- 0.8.2
- 0.8.1
- 0.8.0
- 0.7.1
- 0.7.0
- 0.6.2
- 0.6.1
- 0.6.0
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.1
- 0.2.0
- 0.1.0
- dev-conductor-phpunit-phpunit-51545
- dev-conductor-phpstan-phpstan-strict-rules-51216
- dev-feature/rename-min-msi
- dev-feature/test-checker-2
- dev-feature/do-not-mutate-arid-nodes
- dev-feature/phpstan-skip-mutators
- dev-feature/phpstan-integration
- dev-feature/no-tests-fails-infection
- dev-feature/contribution-guide-2
- dev-conductor-nothing
- dev-shish/safe
- dev-Kanti/patch-1
- dev-patch-1
- dev-feature/rector-rule-add-covers-class
- dev-feature/fail-on-non-matching-ignore-regex
- dev-feat/1601-concat-flip-the-same
- dev-bugfix/1523
- dev-feature/json-schema-autocomplete
- dev-reproducer/box-issue
- dev-refactor/console-output
- dev-feat/function-mutation
- dev-feature/sarb-logger
- dev-refactor/parser-traverser
- dev-feature/box
This package is auto-updated.
Last update: 2025-10-05 06:13:07 UTC
README
Infection - Mutation Testing framework
Please read documentation here: infection.github.io
- Twitter: @infection_php
- Mastodon: @infection_php
- Discord: https://discord.gg/ZUmyHTJ
- Playground - try it right in your browser!
Contributing
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.
Sponsors
Want your logo here? Learn more »
Companies
Individuals
The full list of awesome Infection sponsors is here: https://github.com/sponsors/infection
Credits
This project is highly inspired from Pádraic Brady (@padraic)'s Humbug library. Humbug has since then been discontinued in favour of this project.