# phpspec

PHP tool for behaviour-driven development that describes the behaviour of an object as specs before the code is written.


Source: https://findsoftware.frbit.cloud/phpspec/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://phpspec.net/
- repository: https://github.com/phpspec/phpspec
- docs: https://phpspec.net/en/stable/

### Identity

- status: active
- maintainer: Konstantin Kudryashov and Marcello Duarte
- maintainerType: unknown
- parent: unknown
- firstRelease: 2011
- hqCountry: unknown

### Kind

- category: testing
- hosting: not applicable
- language: php
- runtime: php
- runtimeMin: php 8.2
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: local
- renderingModes: not applicable
- installMethod: composer

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 8
- latestReleaseDate: 2026-07-04

### Adoption

- githubStargazers: 1904
- packagistDownloads: 38697275
- npmWeeklyDownloads: not applicable
- contributors: 143
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 37326
- dependentPackages: 3796

### Sources

- urls: https://github.com/phpspec/phpspec/blob/main/README.rst (read 2026-11-16)
- urls: https://api.github.com/repos/phpspec/phpspec (read 2026-11-16)
- urls: https://phpspec.net/en/stable/ (read 2026-11-16)
- category: https://phpspec.net/en/stable/manual/introduction.html (read 2026-11-16)
- firstRelease: https://api.github.com/repos/phpspec/phpspec/commits/phpspec-0.2.2 (read 2026-11-16)
- maintainer: https://github.com/phpspec/phpspec/blob/8.3.1/LICENSE (read 2026-11-16)
- language: https://api.github.com/repos/phpspec/phpspec (read 2026-11-16)
- runtime: https://github.com/phpspec/phpspec/blob/8.3.1/composer.json (read 2026-11-16)
- runtimeMin: https://github.com/phpspec/phpspec/blob/8.3.1/composer.json (read 2026-11-16)
- runsAs: https://phpspec.net/en/stable/manual/installation.html (read 2026-11-16)
- installMethod: https://phpspec.net/en/stable/manual/installation.html (read 2026-11-16)
- license: https://github.com/phpspec/phpspec/blob/8.3.1/composer.json (read 2026-11-16)
- currentMajor: https://api.github.com/repos/phpspec/phpspec/releases/tags/8.3.1 (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/phpspec/phpspec/releases/tags/8.3.1 (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/phpspec/phpspec (read 2026-11-16)
- contributors: https://api.github.com/repos/phpspec/phpspec/contributors?per_page=1 (read 2026-11-16)
- packagistDownloads: https://packagist.org/packages/phpspec/phpspec.json (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/phpspec%2Fphpspec (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/phpspec%2Fphpspec (read 2026-11-16)

## Notes

phpspec belongs to a project's development environment, not to the live site: a developer writes the spec for an object first and the code after. The docs link Prophecy, a mocking library, as a companion project.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
