infection / extension-installer
Infection Extension Installer
Fund package maintenance!
infection
Open Collective
Installs: 14 053 040
Dependents: 13
Suggesters: 0
Security: 0
Stars: 23
Watchers: 2
Forks: 5
Open Issues: 2
Type:composer-plugin
Requires
- composer-plugin-api: ^1.1 || ^2.0
Requires (Dev)
- composer/composer: ^1.9 || ^2.0
- friendsofphp/php-cs-fixer: ^2.18, <2.19
- infection/infection: ^0.15.2
- php-coveralls/php-coveralls: ^2.4
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: ^0.12.10
- phpstan/phpstan-phpunit: ^0.12.6
- phpstan/phpstan-strict-rules: ^0.12.2
- phpstan/phpstan-webmozart-assert: ^0.12.2
- phpunit/phpunit: ^9.5
- vimeo/psalm: ^4.8
This package is auto-updated.
Last update: 2024-11-29 23:18:10 UTC
README
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 itscomposer.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