定制 infection/extension-installer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

infection/extension-installer

最新稳定版本:0.1.2

Composer 安装命令:

composer require infection/extension-installer

包简介

Infection Extension Installer

README 文档

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

统计信息

  • 总下载量: 22.03M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 26
  • 点击次数: 1
  • 依赖项目数: 14
  • 推荐数: 0

GitHub 信息

  • Stars: 26
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2026-01-04