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

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

phpspec/phpspec
===============

Specification-oriented BDD framework for PHP 7.1+

8.3.0(1mo ago)1.9k37.2M↓42.6%287[135 issues](https://github.com/phpspec/phpspec/issues)[4 PRs](https://github.com/phpspec/phpspec/pulls)20MITPHPPHP 8.2.\* || 8.3.\* || 8.4.\* || 8.5.\*CI failing

Since Aug 1Pushed 1mo ago55 watchersCompare

[ Source](https://github.com/phpspec/phpspec)[ Packagist](https://packagist.org/packages/phpspec/phpspec)[ Docs](http://phpspec.net/)[ RSS](/packages/phpspec-phpspec/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (28)Versions (120)Used By (20)

phpspec
=======

[](#phpspec)

The main website with documentation is at .

[![Main Build Status](https://github.com/phpspec/phpspec/workflows/Build/badge.svg)](https://github.com/phpspec/phpspec/actions?query=workflow%3ABuild)[![Master Scrutinizer Quality Score](https://camo.githubusercontent.com/48b447a95dd92e2b16ae65da131e75a78902ec1743a5b4c9cc0dba724fd944c7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f706870737065632f706870737065632e737667)](https://scrutinizer-ci.com/g/phpspec/phpspec/build-status/master)[![AppVeyor build status](https://camo.githubusercontent.com/40ec907cb6f83d25e29d94a28f25ba8085f257d809a488dd07d04e55a24a7d5d/68747470733a2f2f696d672e736869656c64732e696f2f6170707665796f722f63692f63696172616e6d636e756c74792f706870737065632f6d61737465722e737667)](https://ci.appveyor.com/project/ciaranmcnulty/phpspec/branch/master)[![Total downloads](https://camo.githubusercontent.com/58ede78159e3c04df55360458e7d6400160bd79a0349188d485cc310f48c7943/68747470733a2f2f706f7365722e707567782e6f72672f706870737065632f706870737065632f646f776e6c6f6164732e706e67)](https://poser.pugx.org/phpspec/phpspec/downloads)[![Latest stable version](https://camo.githubusercontent.com/9733bc353f5a4a234255fe1b5dbf783b727d27668a8f34f8063ad8c559d5a767/68747470733a2f2f706f7365722e707567782e6f72672f706870737065632f706870737065632f762f737461626c652e706e67)](https://poser.pugx.org/phpspec/phpspec/v/stable)[![Latest unstable version](https://camo.githubusercontent.com/32490e2b02eb929829f55d431296169f670970d5bc417f5bf0059056fc758847/68747470733a2f2f706f7365722e707567782e6f72672f706870737065632f706870737065632f762f756e737461626c652e706e67)](https://poser.pugx.org/phpspec/phpspec/v/unstable)[![Software license](https://camo.githubusercontent.com/3d647eec9fea7797fd778ca988ed67ce6c76d1616c5d9a41ce9fedc846fa1c02/68747470733a2f2f706f7365722e707567782e6f72672f706870737065632f706870737065632f6c6963656e73652e706e67)](https://poser.pugx.org/phpspec/phpspec/license)Installing Dependencies
-----------------------

[](#installing-dependencies)

Dependencies are handled via [composer](https://getcomposer.org):

```
wget -nc https://getcomposer.org/composer.phar
php composer.phar install
```

Developer's mailing list
------------------------

[](#developers-mailing-list)

For development discussion subscribe to .

Community
---------

[](#community)

Check out #phpspec on irc.freenode.net.

###  Health Score

84

—

ExcellentBetter than 100% of packages

Maintenance87

Actively maintained with recent releases

Popularity76

Solid adoption and visibility

Community65

Healthy contributor diversity

Maturity98

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~42 days

Recently: every ~86 days

Total

119

Last Release

57d ago

Major Versions

5.1.2 → 6.0.02019-10-02

5.1.x-dev → 6.2.02020-06-16

6.3.0 → 7.0.02020-11-03

6.3.x-dev → 7.0.12020-12-29

7.x-dev → 8.0.02025-09-06

PHP version history (17 changes)1.4.0PHP &gt;=5.3.2

2.0.0-BETA1PHP &gt;=5.3.3

3.0.0-betaPHP ^5.6|^7.0

3.0.0-beta2PHP ^5.6 || ^7.0

4.0.0-betaPHP ^7.0,&lt;7.2

4.0.4PHP ^7.0,&lt;7.3

5.0.0-RC1PHP ^7.1, &lt;7.3

5.1.0PHP ^7.1, &lt;7.4

6.0.0PHP ^7.2, &lt;7.4

6.1.0PHP ^7.2, &lt;7.5

6.3.0PHP ^7.2 || 8.0.\*

7.0.0PHP ^7.3 || 8.0.\*

7.2.0PHP ^7.3 || 8.0.\* || 8.1.\*

7.3.0PHP ^7.3 || 8.0.\* || 8.1.\* || 8.2.\*

7.5.0PHP ^7.3 || 8.0.\* || 8.1.\* || 8.2.\* || 8.3.\*

8.0.0PHP 8.2.\* || 8.3.\* || 8.4.\*

8.2.0PHP 8.2.\* || 8.3.\* || 8.4.\* || 8.5.\*

### Community

Maintainers

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

![](https://avatars.githubusercontent.com/u/70713?v=4)[md](/maintainers/md)[@md](https://github.com/md)

---

Top Contributors

[![ciaranmcnulty](https://avatars.githubusercontent.com/u/237866?v=4)](https://github.com/ciaranmcnulty "ciaranmcnulty (1221 commits)")[![MarcelloDuarte](https://avatars.githubusercontent.com/u/144535?v=4)](https://github.com/MarcelloDuarte "MarcelloDuarte (533 commits)")[![padraic](https://avatars.githubusercontent.com/u/19780?v=4)](https://github.com/padraic "padraic (167 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (79 commits)")[![richardmiller-zz](https://avatars.githubusercontent.com/u/783827?v=4)](https://github.com/richardmiller-zz "richardmiller-zz (56 commits)")[![shanethehat](https://avatars.githubusercontent.com/u/604650?v=4)](https://github.com/shanethehat "shanethehat (53 commits)")[![avant1](https://avatars.githubusercontent.com/u/2902785?v=4)](https://github.com/avant1 "avant1 (49 commits)")[![jakzal](https://avatars.githubusercontent.com/u/190447?v=4)](https://github.com/jakzal "jakzal (48 commits)")[![Elfiggo](https://avatars.githubusercontent.com/u/2065652?v=4)](https://github.com/Elfiggo "Elfiggo (41 commits)")[![gquemener](https://avatars.githubusercontent.com/u/668604?v=4)](https://github.com/gquemener "gquemener (40 commits)")[![mlopes](https://avatars.githubusercontent.com/u/654?v=4)](https://github.com/mlopes "mlopes (36 commits)")[![everzet](https://avatars.githubusercontent.com/u/30813?v=4)](https://github.com/everzet "everzet (35 commits)")[![Sam-Burns](https://avatars.githubusercontent.com/u/6594039?v=4)](https://github.com/Sam-Burns "Sam-Burns (35 commits)")[![marek-pietrzak-tg](https://avatars.githubusercontent.com/u/2435655?v=4)](https://github.com/marek-pietrzak-tg "marek-pietrzak-tg (34 commits)")[![cordoval](https://avatars.githubusercontent.com/u/328359?v=4)](https://github.com/cordoval "cordoval (32 commits)")[![whatthejeff](https://avatars.githubusercontent.com/u/306525?v=4)](https://github.com/whatthejeff "whatthejeff (28 commits)")[![unfunco](https://avatars.githubusercontent.com/u/1716636?v=4)](https://github.com/unfunco "unfunco (20 commits)")[![torchello](https://avatars.githubusercontent.com/u/897885?v=4)](https://github.com/torchello "torchello (18 commits)")[![pamil](https://avatars.githubusercontent.com/u/1897953?v=4)](https://github.com/pamil "pamil (17 commits)")[![greg0ire](https://avatars.githubusercontent.com/u/657779?v=4)](https://github.com/greg0ire "greg0ire (15 commits)")

---

Tags

hacktoberfesttestingspecificationBDDTDDtestsspecSpecBDD

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k16.3M972](/packages/phpro-grumphp)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21764.8M1.6k](/packages/drupal-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M195](/packages/sulu-sulu)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6941.5M395](/packages/drupal-core-recommended)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M506](/packages/shopware-core)

PHPackages © 2026

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