Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

Behat

behat.org

  • Free plan
  • Linux
6.7 Club score Visit behat.org

What Behat is

Behat is free, open-source software for writing executable software specifications in plain language. It is the PHP implementation of Cucumber and runs specifications written in Gherkin. Feature files can describe application behavior and be checked through browser automation, HTTP API calls, shell commands, databases, filesystems, or PHP code. Behat is designed for use with any PHP framework, or without one. Installation is documented through Composer or a PHAR executable, and both methods run using PHP. Its extension system can enhance or replace nearly any part of its functionality. Available extensions cover framework integrations, browser automation, test reporting, and data fixtures, although the project does not maintain an official extension list. Behat has no built-in assertion tool, so users can pair it with an external assertion library. It supports current PHP and third-party dependency versions; Symfony 8 support begins with Behat 4.0. The project says each major version receives security fixes for 24 months after the next major release. Volunteers maintain the software, which is provided without warranty.

Who it suits

Behat suits PHP developers who want to describe application behavior in Gherkin and run those specifications across varied testing targets. It can fit projects with or without a PHP framework.

Good to know, and what to watch

  • Free, open-source Gherkin specification tool.
  • Can test through browsers, APIs, shells, databases, and more.
  • Works with any PHP framework or without one.
  • Extensions can change or expand its functionality.
  • Does not include its own assertion tool.
  • Provided without warranty.

Behat

Free

Free plan

The verdict

Behat offers a flexible way to execute plain-language specifications in PHP projects. Teams should account for the need to use an external assertion library and the software's no-warranty terms.

What the maker publishes

Assertions
Behat does not include its own assertion tool, and its documentation lists external assertion libraries that can be used. source
Community support
The project directs users to its Gitter channel for questions and its contribution guide for issues or feature contributions. source
Compatibility limit
Behat supports current PHP and third-party dependency versions, and says Symfony 8 support starts with Behat 4.0. source
Extensibility
Behat's extension system can enhance or replace nearly any part of its functionality. source
Extensions
Available extensions include integrations for PHP frameworks, browser automation, test result reporting, and data fixtures; the project says it does not maintain an official extension list. source
Framework support
Behat is designed to work with any PHP framework or with no framework. source
Installation
The documented installation methods are Composer and a PHAR executable, both run using PHP. source
PHP implementation
Behat is the PHP implementation of Cucumber and runs specifications written in Gherkin. source
Purpose
Behat is an open source behavior-driven development tool for writing executable software specifications in plain language. source
Security support
The project states that each major version receives security fixes for 24 months after the next major release. source
Testing scope
Feature files can describe whole application behavior and can be tested using browser automation, HTTP API calls, shell commands, databases, filesystems, or PHP code. source
Warranty
Behat describes itself as free software maintained by volunteers and says its license provides it without warranty. source

Checked against the maker's pages on 4 Oct 2026.