# Behat/Behat

BDD in PHP

Repository: https://github.com/Behat/Behat
Canonical: https://ross.abutalabs.com/products/behat
Homepage: http://behat.org
Language: PHP
License: MIT
License Family: permissive
Topics: php, behat, gherkin, documentation-tool, test-driven-development, behavior-driven-development, bdd, cucumber
Last push: 2026-07-10T06:06:03+00:00

## Health v2 (maintenance only)
Score: 92/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 91, release rhythm 89, longevity 100
- inputs: {"age_days": 5679, "days_push": 54, "days_rel": 72, "gap_med": 20.0, "n_releases_24m": 23}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3968, forks 614 (observed 2026-08-28T04:08:30.773090+00:00)

## What it is
Behat is a behavior-driven development (BDD) testing framework for PHP that lets teams write executable business expectations in Gherkin syntax, similar to Cucumber. It runs scenarios from the command line and maps them to PHP context code to verify application behavior.

## Use cases
- write acceptance tests in gherkin for a php application
- run behavior-driven development scenarios
- test business expectations of a web app
- collaborate with non-developers on executable specifications
- add bdd testing to a php project via composer
- automate end-to-end feature testing in php

## When to choose
- your team practices BDD and wants Gherkin-based scenarios in PHP
- you need executable specifications that business stakeholders can read
- you want a mature, Cucumber-style testing tool for PHP

## When to avoid
- you only need low-level unit tests without business-readable scenarios
- your project is not in PHP
- you prefer code-first testing frameworks without a DSL

## Facets
- artifact type: framework
- maturity: stable
- function: testing, e2e-testing, cli, documentation
- domain: testing, developer-tools, web-development
- platform: php, cli, cross-platform
- tags: bdd, gherkin, cucumber-style, behavior-driven-development, acceptance-testing, php

## Member repositories
- Behat/Behat (main) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:30.773090+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:24:23.063998+00:00, confidence not recorded.
  - readme: https://github.com/Behat/Behat (fetched 2026-08-28T04:08:30.773090+00:00, sha c0697e3396dd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
