# Behat

> Behaviour-driven development for PHP

Source: https://talira.ai/catalog/behat-ywjzeqm5
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Framework, Command-line tool
- Categories: [developer tools / testing / frameworks](https://talira.ai/categories/developer-tools/testing/frameworks), [languages / php](https://talira.ai/categories/languages/php)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Plugins: yes[^1]
- Backed by: [Konstantin Kudryashov](https://talira.ai/orgs/konstantin-kudryashov.md)

Behat is an open source behaviour-driven development tool for PHP, the PHP implementation of [Cucumber](https://talira.ai/catalog/cucumber-05083bzc.md): teams write specifications as features and scenarios in plain-language Gherkin, and Behat runs them against the application through PHP step definitions. Scenarios can drive anything, from a browser or HTTP API calls to shell commands, the database or PHP code directly, and profiles, tags and suites run the same features in different ways. It works with any PHP framework, uses Symfony components internally, and nearly every part can be extended or replaced through extensions (framework integrations, browser automation, reporters, fixtures). MIT licensed.

## Links

- Website: https://behat.org/
- GitHub: https://github.com/Behat/Behat
- Docs: https://docs.behat.org/en/latest/

## Problems it solves

- write acceptance tests for my PHP app in plain English the product team can read
- do behaviour-driven development in PHP
- test my Symfony or Laravel app's features from the user's point of view
- run the same acceptance scenarios against the API and through a browser
- turn agreed requirements into executable specifications for a PHP project

## Features

- Gherkin features and scenarios in plain language
- PHP step definitions, hooks and argument transformations
- profiles, tags and suites to run the same features different ways
- output formatters, including custom ones
- extension system for framework integrations, browser automation, reporters and fixtures
- works with any PHP framework, or none

## Capabilities

- Takes plugins: plan not known

## Trust

Overall: 0.69 out of 1.
Signals: maintenance 0.99, adoption 0.72, momentum 0.40, community 0.92, backing 0.30, extensibility 0.20.

- last commit 9 days ago
- 58 commits in the last 90 days
- latest release v4.1.1 9 days ago
- 4.0k GitHub stars
- 197 contributors
- accepts sponsorship (Github, Github, Github)
- backed by Konstantin Kudryashov
- has a plugin system

## Alternatives

- [Cucumber](https://talira.ai/catalog/cucumber-05083bzc.md): Automated acceptance tests written in plain language
- [phpspec](https://talira.ai/catalog/phpspec-k1mjredm.md): Specification-oriented BDD framework for PHP
- [Codeception](https://talira.ai/catalog/codeception-c3m740wg.md): Full-stack testing framework for PHP
- [SymfonyExtension (Behat)](https://talira.ai/catalog/symfonyextension-behat-214drr96.md): Behat extension that runs your contexts as Symfony services and tests the app without a server

## Sources

[^1]: https://behat.org/ (checked 27 Nov 2026)
[^2]: https://github.com/Behat/Behat/blob/4.x/LICENSE (checked 27 Nov 2026)
