FindSoftware

Prophecy

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

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.

Identity

Status
Active
Maintainer
Konstantin Kudryashov and Marcello Duarte3
First release
20134

Rendering and deploy

Install with
composer2

Releases

Current major version
16
Last release
2026-04-137

Adoption

GitHub stars
8,4621
Packagist downloads
575,034,3128
Contributors
1169
Dependent repositories
514,64710
Dependent packages
83610

Why these figures do not compare

Sources

  1. 2026-11-16: links, Written in, GitHub stars
    api.github.com/repos/phpspec/prophecy
  2. 2026-11-16: links, Categories, Install with
    github.com/phpspec/prophecy/blob/master/README.md
  3. 2026-11-16: Maintainer
    github.com/phpspec/prophecy/blob/master/LICENSE
  4. 2026-11-16: First release
    api.github.com/repos/phpspec/prophecy/tags
  5. 2026-11-16: Runtime, Minimum runtime, License, License model
    github.com/phpspec/prophecy/blob/v1.26.1/composer.json
  6. 2026-11-16: Current major version
    api.github.com/repos/phpspec/prophecy/releases/tags/v1.26.0
  7. 2026-11-16: Last release
    repo.packagist.org/p2/phpspec/prophecy.json
  8. 2026-11-16: Packagist downloads
    packagist.org/packages/phpspec/prophecy.json
  9. 2026-11-16: Contributors
    api.github.com/repos/phpspec/prophecy/contributors?per_page=1
  10. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/packagist.org/packages/phpspec%2Fprophecy

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON