PHPackages                             infection/phpspec-adapter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. infection/phpspec-adapter

ActiveInfection-extension[Testing &amp; Quality](/categories/testing)

infection/phpspec-adapter
=========================

PHPSpec Test Framework Adapter for Infection

0.3.0(4mo ago)3156.6k↓20.2%1[1 issues](https://github.com/infection/phpspec-adapter/issues)[4 PRs](https://github.com/infection/phpspec-adapter/pulls)20BSD-3-ClausePHPPHP ^8.2CI passing

Since Feb 16Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/infection/phpspec-adapter)[ Packagist](https://packagist.org/packages/infection/phpspec-adapter)[ GitHub Sponsors](https://github.com/infection)[ Fund](https://opencollective.com/infection)[ RSS](/packages/infection-phpspec-adapter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (14)Versions (14)Used By (20)

PHPSpec Test Framework Adapter for Infection
============================================

[](#phpspec-test-framework-adapter-for-infection)

This package provides the test framework adapter of [PHPSpec](https://packagist.org/packages/phpspec/phpspec) for [infection](https://infection.github.io).

[![Architecture](./docs/test-framework-adapter.png)](./docs/test-framework-adapter.png)

Installation
------------

[](#installation)

In a standard usage, infection should detect [`phpspec/phpspec`](https://packagist.org/packages/phpspec/phpspec) being used and leverage its [`infection/extension-installer`](https://packagist.org/packages/infection/extension-installer) to install this package.

Otherwise, you can still install it as usual:

```
composer require --dev infection/phpspec-adapter
```

The adapter will be automatically registered in Infection's runtime through its auto-discovery mechanism.

Usage
-----

[](#usage)

Once installed, you can run Infection:

```
vendor/bin/infection # optional: --test-framework=phpspec
```

Infection will automatically detect and use the [PHPSpec](https://packagist.org/packages/phpspec/phpspec) adapter when [PHPSpec](https://packagist.org/packages/phpspec/phpspec) is configured in your project.

### Configuration

[](#configuration)

The adapter works with your existing PHPSpec configuration. No additional configuration is required beyond the standard Infection configuration file `infection.json5.dist`.

For more information on configuring Infection, see the [Infection documentation](https://infection.github.io/guide/usage.html#Configuration).

Contributing
------------

[](#contributing)

Contributions are welcome! Please see [CONTRIBUTING.md](.github/CONTRIBUTING.md) for details.

License
-------

[](#license)

This project is licensed under the BSD 3-Clause License. See the [LICENSE](LICENSE) file for details.

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance77

Regular maintenance activity

Popularity36

Limited adoption so far

Community27

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 63.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~358 days

Recently: every ~454 days

Total

7

Last Release

133d ago

PHP version history (3 changes)0.1.1PHP ^7.3

0.1.2PHP ^7.4 || ^8.0

0.3.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/a0196ce472ed16a55b72aa7f9f9956bc6e68fa519abf975caffc9fcb5fa320df?d=identicon)[borN\_free](/maintainers/borN_free)

---

Top Contributors

[![theofidry](https://avatars.githubusercontent.com/u/5175937?v=4)](https://github.com/theofidry "theofidry (101 commits)")[![maks-rafalko](https://avatars.githubusercontent.com/u/3725595?v=4)](https://github.com/maks-rafalko "maks-rafalko (23 commits)")[![sidz](https://avatars.githubusercontent.com/u/1302230?v=4)](https://github.com/sidz "sidz (21 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![chrisjenkinson](https://avatars.githubusercontent.com/u/568142?v=4)](https://github.com/chrisjenkinson "chrisjenkinson (4 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/infection-phpspec-adapter/health.svg)

```
[![Health](https://phpackages.com/badges/infection-phpspec-adapter/health.svg)](https://phpackages.com/packages/infection-phpspec-adapter)
```

###  Alternatives

[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.

2.2k26.2M1.8k](/packages/infection-infection)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[phpbench/phpbench

PHP Benchmarking Framework

2.0k13.0M627](/packages/phpbench-phpbench)[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k15.5M904](/packages/phpro-grumphp)[captainhook/captainhook

PHP git hook manager

1.1k6.8M370](/packages/captainhook-captainhook)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
