# Prophecy

PHP object mocking framework that builds test doubles from predictions of how an object will behave, usable with any PHP testing framework.


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

## Record

### Links

- repository: https://github.com/phpspec/prophecy
- docs: https://github.com/phpspec/prophecy/blob/master/README.md

### Identity

- status: active
- maintainer: Konstantin Kudryashov and Marcello Duarte
- maintainerType: unknown
- parent: unknown
- firstRelease: 2013
- 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: unknown
- renderingModes: not applicable
- installMethod: composer

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 1
- latestReleaseDate: 2026-04-13

### Adoption

- githubStargazers: 8462
- packagistDownloads: 575034312
- npmWeeklyDownloads: not applicable
- contributors: 116
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 514647
- dependentPackages: 836

### Sources

- urls: https://api.github.com/repos/phpspec/prophecy (read 2026-11-16)
- urls: https://github.com/phpspec/prophecy/blob/master/README.md (read 2026-11-16)
- maintainer: https://github.com/phpspec/prophecy/blob/master/LICENSE (read 2026-11-16)
- firstRelease: https://api.github.com/repos/phpspec/prophecy/tags (read 2026-11-16)
- category: https://github.com/phpspec/prophecy/blob/master/README.md (read 2026-11-16)
- language: https://api.github.com/repos/phpspec/prophecy (read 2026-11-16)
- runtime: https://github.com/phpspec/prophecy/blob/v1.26.1/composer.json (read 2026-11-16)
- runtimeMin: https://github.com/phpspec/prophecy/blob/v1.26.1/composer.json (read 2026-11-16)
- installMethod: https://github.com/phpspec/prophecy/blob/master/README.md (read 2026-11-16)
- license: https://github.com/phpspec/prophecy/blob/v1.26.1/composer.json (read 2026-11-16)
- licenseModel: https://github.com/phpspec/prophecy/blob/v1.26.1/composer.json (read 2026-11-16)
- currentMajor: https://api.github.com/repos/phpspec/prophecy/releases/tags/v1.26.0 (read 2026-11-16)
- latestReleaseDate: https://repo.packagist.org/p2/phpspec/prophecy.json (read 2026-11-16)
- packagistDownloads: https://packagist.org/packages/phpspec/prophecy.json (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/phpspec/prophecy (read 2026-11-16)
- contributors: https://api.github.com/repos/phpspec/prophecy/contributors?per_page=1 (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/phpspec%2Fprophecy (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/phpspec%2Fprophecy (read 2026-11-16)

## Notes

Prophecy is a PHP object mocking framework. It builds test doubles from predictions of how an object will behave. It was first written to serve phpspec2, and its README says it can be used inside any PHP testing framework. The README shows it under the development dependencies of a project.

## Worth knowing

The README FAQ says Prophecy does not support calling the original methods on a prophesized class.

---

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
