behat / behat
Scenario-oriented BDD framework for PHP
Fund package maintenance!
acoulton
stof
carlos-granados
Installs: 91 166 562
Dependents: 2 238
Suggesters: 19
Security: 0
Stars: 3 951
Watchers: 141
Forks: 614
Open Issues: 52
pkg:composer/behat/behat
Requires
- php: >=8.1 <8.6
- composer-runtime-api: ^2.2
- ext-mbstring: *
- behat/gherkin: ^4.12.0
- composer/xdebug-handler: ^1.4 || ^2.0 || ^3.0
- nikic/php-parser: ^4.19.2 || ^5.2
- psr/container: ^1.0 || ^2.0
- symfony/config: ^5.4 || ^6.4 || ^7.0
- symfony/console: ^5.4 || ^6.4 || ^7.0
- symfony/dependency-injection: ^5.4 || ^6.4 || ^7.0
- symfony/event-dispatcher: ^5.4 || ^6.4 || ^7.0
- symfony/translation: ^5.4 || ^6.4 || ^7.0
- symfony/yaml: ^5.4 || ^6.4 || ^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.68
- opis/json-schema: ^2.5
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^9.6
- rector/rector: 2.1.7
- sebastian/diff: ^4.0
- symfony/filesystem: ^5.4 || ^6.4 || ^7.0
- symfony/polyfill-php84: ^1.31
- symfony/process: ^5.4 || ^6.4 || ^7.0
Suggests
- ext-dom: Needed to output test results in JUnit format.
- 4.x-dev
- 3.x-dev
- v3.27.0
- v3.26.0
- v3.25.0
- v3.24.1
- v3.24.0
- v3.23.0
- v3.22.0
- v3.21.1
- v3.21.0
- v3.20.0
- v3.19.0
- v3.18.1
- v3.18.0
- v3.17.0
- v3.16.1
- v3.16.0
- v3.15.0
- v3.14.0
- v3.13.0
- v3.12.0
- v3.11.0
- v3.10.0
- v3.9.1
- v3.9.0
- v3.8.1
- v3.8.0
- v3.7.0
- v3.6.1
- 3.6.0
- v3.5.0
- v3.4.3
- v3.4.2
- v3.4.1
- v3.4.0
- v3.3.1
- v3.3.0
- v3.2.3
- v3.2.2
- v3.2.1
- v3.2.0
- v3.2.0rc2
- v3.2.0rc1
- v3.1.0
- v3.1.0rc2
- v3.1.0rc1
- v3.0.15
- v3.0.14
- v3.0.13
- v3.0.12
- v3.0.11
- v3.0.10
- v3.0.9
- v3.0.8
- v3.0.7
- v3.0.6
- v3.0.5
- v3.0.4
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- v3.0.0rc3
- v3.0.0rc2
- v3.0.0rc1
- v3.0.0beta8
- v3.0.0beta7
- v3.0.0beta6
- v3.0.0beta5
- v3.0.0beta4
- v3.0.0beta3
- v3.0.0beta2
- v3.0.0beta1
- 2.5.x-dev
- v2.5.5
- v2.5.4
- v2.5.3
- v2.5.2
- v2.5.1
- v2.5.0
- v2.4.6
- v2.4.5
- v2.4.4
- v2.4.3
- v2.4.2
- v2.4.1
- v2.4.0
- v2.4.0beta5
- v2.4.0beta4
- v2.4.0beta3
- v2.4.0beta2
- v2.4.0beta1
- v2.3.5
- v2.3.4
- v2.3.3
- v2.3.2
- v2.3.1
- v2.3.0
- v2.2.8
- v2.2.7
- v2.2.6
- v2.2.5
- v2.2.4
- v2.2.3
- v2.2.2
- v2.2.1
- v2.2.0
This package is auto-updated.
Last update: 2025-12-03 10:26:49 UTC
README
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.
