infection/extension-installer

Infection Extension Installer

Maintainers

👁 borN_free

Package info

github.com/infection/extension-installer

Type:composer-plugin

pkg:composer/infection/extension-installer

Fund package maintenance!

infection

Open Collective

Statistics

Installs: 26 861 052

Dependents: 14

Suggesters: 0

Stars: 26

Open Issues: 2

0.1.2 2021-10-20 22:08 UTC

Requires

  • composer-plugin-api: ^1.1 || ^2.0

Suggests

None

Provides

None

Conflicts

None

Replaces

None

BSD-3-Clause 9b351d2910b9a23ab4815542e93d541e0ca0cdcf

  • Maks Rafalko <maks.rafalko.woop@gmail.com>

This package is auto-updated.

Last update: 2026-06-29 01:50:08 UTC


README

👁 CI
👁 Coverage Status

Infection - Extensions Installer

Composer plugin for automatic registering of Infection extensions.

How to install extension

Extension installer is bundled together with Infection core. All you need to register a custom extension is just to install a composer package.

Extension will be registered automatically.

Infection Extension Installer listens post-install-cmd and post-update-cmd events and as soon as it finds an Infection extension, it automatically registers it in Infection.

composer require --dev infection/codeception-adapter

Using version 1.0.0 for infection/codeception-adapter
Package operations: 1 installs, 0 updates, 0 removals
 - Installing infection/codeception-adapter (1.0.0): Downloading 100%

infection/extension-installer: Extensions installed
> infection/codeception-adapter: installed

How to write an extension for Infection

Infection extension is a composer-based package. Basically it is a composer package which conforms to the following requirements:

  • its type field is set to infection-extension
  • it has extra.infection.class subkey in its composer.json that references a class that will be invoked in the Infection runtime.

Example:

{
 "name": "infection/codeception-adapter",
 "type": "infection-extension",
 "extra": {
 "infection": {
 "class": "Infection\\TestFramework\\Codeception\\CodeceptionAdapterFactory"
 }
 }
}

Supported extensions types

Currently, Infection supports only Test Framework extensions (example).

Available extensions

All Infection extensions can be discovered on Packagist.

Infection - Mutation Testing Framework

Please read documentation here: infection.github.io

Twitter: @infection_php