PHPackages                             task/phpspec - 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. task/phpspec

ActiveLibrary[Testing &amp; Quality](/categories/testing)

task/phpspec
============

PhpSpec plugin for Task

v0.1.1(11y ago)09844MITPHP

Since Apr 23Pushed 11y ago2 watchersCompare

[ Source](https://github.com/taskphp/phpspec)[ Packagist](https://packagist.org/packages/task/phpspec)[ RSS](/packages/task-phpspec/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (5)Versions (3)Used By (4)

task/phpspec
============

[](#taskphpspec)

[![Build Status](https://camo.githubusercontent.com/7f7a09cc8a5eab59840ea90d3ffff0c0dd7a28b08856b63a1154480e714161e2/68747470733a2f2f7472617669732d63692e6f72672f7461736b7068702f706870737065632e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/taskphp/phpspec)[![Coverage Status](https://camo.githubusercontent.com/c2540d24e269526637b2830f59f212c2c957078d6006ecc77a8b89a7667b7acd/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f7461736b7068702f706870737065632f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/taskphp/phpspec?branch=master)

Example
=======

[](#example)

```
use Task\Plugin\PhpSpecPlugin;

$project->inject(function ($container) {
    $container['phpspec'] = new PhpSpecPlugin;
});

$project->addTask('test', ['phpspec', function ($phpspec) {
    $phpspec->command('run')
        ->setConfig($this->getProperty('config', 'phpspec.yml'))
        ->setFormat('pretty')
        ->pipe($this->getOutput());
}]);
```

Installation
============

[](#installation)

Add to your `composer.json`:

```
...
"require-dev": {
    "task/phpspec": "~0.1"
}
...
```

Usage
=====

[](#usage)

See [task/console](https://github.com/taskphp/console) for usage documentation.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~239 days

Total

2

Last Release

4168d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a2690beef16c00adcf9d21b025550c9b6fda653cfd57b5f99db279c459fb77ae?d=identicon)[mbfisher](/maintainers/mbfisher)

---

Top Contributors

[![aranw](https://avatars.githubusercontent.com/u/241565?v=4)](https://github.com/aranw "aranw (6 commits)")[![mbfisher](https://avatars.githubusercontent.com/u/1162326?v=4)](https://github.com/mbfisher "mbfisher (3 commits)")

### Embed Badge

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

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

###  Alternatives

[benconstable/phpspec-laravel

Test your Laravel applications with PhpSpec

144347.1k15](/packages/benconstable-phpspec-laravel)[akeneo/phpspec-skip-example-extension

Skip your PhpSpec examples through annotations

34978.5k11](/packages/akeneo-phpspec-skip-example-extension)[friends-of-phpspec/phpspec-code-coverage

Generate Code Coverage reports for PhpSpec tests

202.6M125](/packages/friends-of-phpspec-phpspec-code-coverage)[rmiller/behat-spec

Behat and PhpSpec integration

5321.7k8](/packages/rmiller-behat-spec)[proget-hq/phpstan-phpspec

PhpSpec extension for PHPStan

2130.2k](/packages/proget-hq-phpstan-phpspec)

PHPackages © 2026

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