Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
B

Behat

> 编程语言
Open source

BDD in PHP

4.0K stars0 likes1 views
WebsiteGitHub

About

BDD in PHP

Behat is a BDD framework for PHP to help you test business expectations. Installing Behat

The easiest way to install Behat is by using Composer:

composer require --dev behat/behat

After that you'll be able to run Behat via:

vendor/bin/behat

Installing Development Version

Clone the repository and install dependencies via Composer:

composer install

After that you will be able to run development version of Behat via:

bin/behat

Contributing

Before contributing to Behat, please take a look at the CONTRIBUTING.md document.

Versioning

Starting from v3.0.0, Behat is following Semantic Versioning v2.0.0. This basically means that if all you do is implement interfaces (like this one) and use service constants (like this one), you would not have any backwards compatibility issues with Behat up until v4.0.0 (or later major) is released. Exception could be an extremely rare case where BC break is introduced as a measure to fix a serious issue.

You can read detailed guidance on what BC means in Symfony BC guide.

Useful Links

  • The main website is at https://behat.org
  • The documentation is at https://docs.behat.org/en/latest/
  • Note on Patches/Pull Requests

Contributors

  • Konstantin Kudryashov everzet [original developer]
  • Andrew Coulton acoulton [current maintainer]
  • Carlos Granados carlos-granados [current maintainer]
  • Christophe Coevoet stof [current maintainer]
  • Other awesome developers

Support the project

Behat is free software, maintained by volunteers as a gift for users. If you'd like to see the project continue to thrive, and particularly if you use it for work, we'd encourage you to contribute.

Contributions of time - whether code, documentation, or support reviewing PRs and triaging issues - are very welcome and valued by the maintainers and the wider Behat community.

But we also believe that financial sponsorship is an important part of a healthy Open Source ecosystem. Maintaining a project like Behat requires a significant commitment from the core team: your support will help us to keep making that time available over the long term. Even small contributions make a big difference.

You can support @acoulton, @carlos-granados and @stof on GitHub sponsors. If you'd like to discuss supporting us in a different way, please get in touch!

Technology Sponsors

Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work.

GitHub Issues· 47 open

View all on GitHub
  • #1237

    Many final classes miss proper interfaces

    MaintenanceUpdated Sep 16, 2026
  • #1451

    Add support for Rule keyword (Gherkin 6)

    FeatureUpdated Sep 12, 2026
  • #1883

    Deprecate (and remove) the `--rerun` option in favour of `--rerun-only`

    IdeaUpdated Sep 7, 2026
  • #1876

    A scenario failing only in an after-scenario hook still reports a passing TestResult

    BugNext MajorUpdated Sep 3, 2026
  • #1746

    [4.x] Move support for stringifying phpunit exceptions into an extension

    Next MajorMaintenanceUpdated Aug 19, 2026
  • #1246

    Behat executes extension logic first instead of its own

    BugConfirmedUpdated Jun 27, 2026
  • #1859

    Create phpstan extension to check Behat extensions

    FeatureIn ProgressUpdated Jun 22, 2026
  • #1743

    4.0 release planning / co-ordination issue

    Updated Jun 22, 2026
  • #1828

    Upgrade to a newer/supported PHPUnit

    MaintenanceDependenciesUpdated Apr 20, 2026
  • #1671

    Option to control pretty format feature line annotations

    FeatureUpdated Apr 19, 2026

Highlights

  • •The main website is at https://behat.org
  • •The documentation is at https://docs.behat.org/en/latest/
  • •Note on Patches/Pull Requests
  • •Konstantin Kudryashov everzet [original developer]
  • •Andrew Coulton acoulton [current maintainer]
  • •Carlos Granados carlos-granados [current maintainer]
  • •Christophe Coevoet stof [current maintainer]
  • •Other awesome developers

> Tags

PHPbddbehatbehavior-driven-developmentcucumber

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言