PHPackages                             friends-of-behat/symfony-extension - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. friends-of-behat/symfony-extension

ActiveSymfony-bundle[Testing &amp; Quality](/categories/testing)

friends-of-behat/symfony-extension
==================================

Integrates Behat with Symfony.

v2.6.2(11mo ago)48223.4M—8.6%67[23 issues](https://github.com/FriendsOfBehat/SymfonyExtension/issues)[4 PRs](https://github.com/FriendsOfBehat/SymfonyExtension/pulls)20MITGherkinPHP ^8.1CI failing

Since Nov 3Pushed 11mo ago9 watchersCompare

[ Source](https://github.com/FriendsOfBehat/SymfonyExtension)[ Packagist](https://packagist.org/packages/friends-of-behat/symfony-extension)[ RSS](/packages/friends-of-behat-symfony-extension/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (15)Versions (51)Used By (20)

 [![](https://avatars2.githubusercontent.com/u/20600343)](https://avatars2.githubusercontent.com/u/20600343)

SymfonyExtension
================

[](#symfonyextension)

This Behat extension provides an integration with Symfony (`^6.0` and `^7.0`) and Mink driver for Symfony application.

It allows for:

- defining your contexts as regular Symfony services
- autowiring and autoconfiguring your contexts
- testing your Symfony application without having to set up a server

Documentation
-------------

[](#documentation)

- [Installation](DOCUMENTATION.md#installation)
- [Usage](DOCUMENTATION.md#usage)
- [Mink integration](DOCUMENTATION.md#mink-integration)
- [Behat/Symfony2Extension differences](DOCUMENTATION.md#differences-from-behatsymfony2extension)
- [Configuration reference](DOCUMENTATION.md#configuration-reference)

For a bit of backstory, take a look at the [SymfonyExtension v2.0.0 release blogpost](https://kamilkokot.com/tame-behat-with-the-brand-new-symfony-extension).

Versioning and release cycle
----------------------------

[](#versioning-and-release-cycle)

This package follows [semantic versioning](https://semver.org/).

Public API is defined as configuration and behaviour defined in form of testable scenarios in the [`features`](features) directory. This means once your application is configured to use Behat with SymfonyExtension, it shall continue to work flawlessly within the same major version.

Next major releases are not planned yet. Minor and patch releases will be published as needed.

Bug fixes will be provided only for the most recent minor release. Security fixes will be provided for one year since the release of subsequent minor release.

Example (with arbitrary dates):

- `v1.0.0` is released on *23.11.2019*
- `v1.0.1` with a bugfix is provided on *03.02.2020*
- `v1.1.0` is released on *15.02.2020*:
    - `1.0` branch will not get bugfixes anymore
    - `1.0` security support will end on *15.02.2021*

License
-------

[](#license)

This extension is completely free and released under permissive [MIT license](LICENSE).

Authors
-------

[](#authors)

It is originally created by [Kamil Kokot](https://github.com/pamil). See the list of [all contributors](https://github.com/FriendsOfBehat/SymfonyExtension/graphs/contributors).

###  Health Score

67

—

FairBetter than 100% of packages

Maintenance49

Moderate activity, may be stable

Popularity70

Solid adoption and visibility

Community53

Growing community involvement

Maturity85

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 76.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~65 days

Recently: every ~135 days

Total

49

Last Release

349d ago

Major Versions

v0.2.1 → v1.0.02017-07-10

v1.4.0 → v2.0.0-beta.12019-01-10

PHP version history (5 changes)v0.1.0PHP ^5.6|^7.0

v1.0.0PHP ^7.1

v2.2.0PHP ^7.3 || ^8.0

v2.3.0PHP ^7.4 || ^8.0

v2.5.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/75c5d927b0434111db9720dd78af8c83385cf28bb9aeafd031ba8cb0c4ffc558?d=identicon)[Stof](/maintainers/Stof)

![](https://www.gravatar.com/avatar/ddce56b3ed9857e5c4a25511e5925b793a1f04bd5fb8f19f42932a0b6dba914f?d=identicon)[pamil](/maintainers/pamil)

---

Top Contributors

[![pamil](https://avatars.githubusercontent.com/u/1897953?v=4)](https://github.com/pamil "pamil (299 commits)")[![Yozhef](https://avatars.githubusercontent.com/u/8971757?v=4)](https://github.com/Yozhef "Yozhef (29 commits)")[![lchrusciel](https://avatars.githubusercontent.com/u/6213903?v=4)](https://github.com/lchrusciel "lchrusciel (13 commits)")[![mpdude](https://avatars.githubusercontent.com/u/1202333?v=4)](https://github.com/mpdude "mpdude (10 commits)")[![adiq](https://avatars.githubusercontent.com/u/2352677?v=4)](https://github.com/adiq "adiq (5 commits)")[![dunglas](https://avatars.githubusercontent.com/u/57224?v=4)](https://github.com/dunglas "dunglas (5 commits)")[![arnolanglade](https://avatars.githubusercontent.com/u/3585922?v=4)](https://github.com/arnolanglade "arnolanglade (3 commits)")[![loic425](https://avatars.githubusercontent.com/u/8329789?v=4)](https://github.com/loic425 "loic425 (3 commits)")[![ruudk](https://avatars.githubusercontent.com/u/104180?v=4)](https://github.com/ruudk "ruudk (3 commits)")[![Zales0123](https://avatars.githubusercontent.com/u/6212718?v=4)](https://github.com/Zales0123 "Zales0123 (3 commits)")[![DonCallisto](https://avatars.githubusercontent.com/u/7060632?v=4)](https://github.com/DonCallisto "DonCallisto (2 commits)")[![alanpoulain](https://avatars.githubusercontent.com/u/10920253?v=4)](https://github.com/alanpoulain "alanpoulain (2 commits)")[![relthyg](https://avatars.githubusercontent.com/u/8628559?v=4)](https://github.com/relthyg "relthyg (1 commits)")[![rogamoore](https://avatars.githubusercontent.com/u/5249624?v=4)](https://github.com/rogamoore "rogamoore (1 commits)")[![soyuka](https://avatars.githubusercontent.com/u/1321971?v=4)](https://github.com/soyuka "soyuka (1 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (1 commits)")[![walva](https://avatars.githubusercontent.com/u/3897363?v=4)](https://github.com/walva "walva (1 commits)")[![wuchen90](https://avatars.githubusercontent.com/u/8489333?v=4)](https://github.com/wuchen90 "wuchen90 (1 commits)")[![yguedidi](https://avatars.githubusercontent.com/u/1480128?v=4)](https://github.com/yguedidi "yguedidi (1 commits)")[![cv65kr](https://avatars.githubusercontent.com/u/9404962?v=4)](https://github.com/cv65kr "cv65kr (1 commits)")

---

Tags

bddbehatbehat-extensionminkmink-driverphpsymfony

###  Code Quality

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/friends-of-behat-symfony-extension/health.svg)

```
[![Health](https://phpackages.com/badges/friends-of-behat-symfony-extension/health.svg)](https://phpackages.com/packages/friends-of-behat-symfony-extension)
```

###  Alternatives

[friends-of-behat/variadic-extension

Variadic support for behat context arguments

2286.0M446](/packages/friends-of-behat-variadic-extension)[ezsystems/behatbundle

Behat bundle for help testing eZ Bundles and projects

44857.4k17](/packages/ezsystems-behatbundle)[leanphp/behat-code-coverage

Generate Code Coverage reports for Behat tests

50359.8k2](/packages/leanphp-behat-code-coverage)[macpaw/behat-messenger-context

Behat Context for testing Symfony Messenger component

16232.9k](/packages/macpaw-behat-messenger-context)[vipsoft/code-coverage-extension

Behat code coverage collector

2186.5k2](/packages/vipsoft-code-coverage-extension)[drevops/behat-steps

Collection of steps for Behat

25381.7k3](/packages/drevops-behat-steps)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
