phpspec
phpspec: A focused SpecBDD workflow for PHP object-behavior specifications. Ranked #26 of 29 in BDD Testing Tools by our editors (5.7/10); pricing: Free plan; best for PHP object-behavior specifications.
At a glance
- Editor score5.7 / 10
- PricingFree plan
- Best forPHP object-behavior specifications
- Free planYes
- Paid fromFree
- Gherkin supportNo
- Facts checked21 Sep 2026

Where it wins
- Generates specifications and classes for a Composer-based PHP workflow
- Includes matchers, stubs, mocks, spies, suites, and PSR-4 support
- Exports HTML, JUnit, TAP, pretty, and other formatter outputs
Where it doesn't
- Does not support Gherkin or StoryBDD workflows
- Runs locally rather than providing a hosted execution model
- Not suited to browser, API, or external-integration testing
Our verdict on phpspec
phpspec is an open-source PHP tool for behaviour-driven development at the specification level. It is designed for developers who describe object behaviour in PHP specifications, then iteratively implement and refactor the code. The workflow is SpecBDD rather than StoryBDD: specifications focus on object behaviour, with Composer handling installation and the executable placed in the project's vendor or configured binary directory.
Its strongest feature set is the depth of its PHP specification workflow. phpspec can generate specifications and classes, apply built-in behaviour matchers, and work with stubs, mocks, and spies. Configurable suites and PSR-4 support help organize specifications and source locations, while custom matchers and extensions allow teams to adapt the workflow. Multiple output formatters, including HTML, JUnit, TAP, and pretty output, also make results usable in different reporting contexts.
The trade-off is a narrow scope. phpspec executes locally and does not support Gherkin, so it is a poor fit for teams that need feature files shared across technical and nontechnical roles. It is also not suited to browser or API testing, or to workflows built around external integrations. Choose phpspec when PHP object design and specification-level feedback are the priority; choose another BDD tool when acceptance scenarios, browser coverage, API coverage, or broader integration support are central requirements.
Your product? Our editors can test phpspec in depth and publish a review, labelled as paid · from $149/mo →
phpspec pricing
phpspec fact sheet
| Free plan | Yes |
|---|---|
| Paid from | Free |
| Gherkin support | No |
| Supported languages | Not verified |
| Execution mode | Local |
| Parallel execution | Not verified |
| Browser testing | Not verified |
| API access | Not verified |
| Deployment | Self-hosted |
| Support | Community, Docs |
| Built for | Solo, Small business, Mid-market (editorial estimate) |
| Pricing | Free plan |
| Website | phpspec.net |
| Facts checked | 21 Sep 2026 |
Alternatives to phpspec
- Cucumber OpenA mature, extensible Cucumber workflow for local and CI-based BDD testing.9.1
- CucumberStudioA shared BDD workspace connecting Gherkin, test execution, automation results, and documentation.8.6
- KarateA self-hosted testing framework spanning API, UI, performance, and mock testing.8.3
See all phpspec alternatives →
Used phpspec? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used phpspec for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
phpspec is listed in our BDD Testing Tools directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/phpspec/"><img src="https://www.itechguides.com/best/badge/phpspec.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update

