Ross ROSS = Recommend OSS · open-source software intelligence for agents

phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+ observed · 2026-08-28

github.com/phpspec/prophecy · PHP · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

80/100

  • Activity 77
  • Release rhythm 72
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: 24
  • age_days: 4909
  • days_rel: 190
  • days_push: 142
  • n_releases_24m: 8

Full methodology

Adoption not part of the score

8471 stars · 247 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

Prophecy is a highly opinionated yet powerful and flexible PHP object mocking framework. Originally built for phpspec2, it works with any PHP testing framework, including PHPUnit, with minimal setup.

Use cases

  • mock objects in phpunit tests
  • create test doubles for php classes
  • stub method calls in php tests
  • verify predicted behavior of collaborators
  • mock interfaces and extend classes in tests

When to choose

  • you write PHP tests and need expressive, fluent mocking
  • you use phpspec or PHPUnit and want predictable test doubles
  • you need to mock interfaces, extend classes, or check call predictions

When to avoid

  • you need mocking in a non-PHP language
  • you prefer simple anonymous-class stubs over a mocking DSL

Facets

library · maturity stable

mocking testing testing developer-tools php test-doubles phpunit phpspec stubbing spies

1 source

Member repositories

RepositoryRoleHealth v2
phpspec/prophecymain80

For agents

markdown · JSON · MCP: product_card(name="phpspec/prophecy")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem