PHPackages                             damien-list/contexts - 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. damien-list/contexts

ActiveLibrary

damien-list/contexts
====================

Behatch contexts

3.2.0(7y ago)091beerwareGherkinPHP &gt;=5.5

Since Jun 29Pushed 6y agoCompare

[ Source](https://github.com/damien-list/contexts)[ Packagist](https://packagist.org/packages/damien-list/contexts)[ RSS](/packages/damien-list-contexts/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (11)Versions (29)Used By (0)

Behatch contexts
================

[](#behatch-contexts)

[![Build status](https://camo.githubusercontent.com/6761659ac49f1a75a50f3c763e12343cfe351a90358b686e856731b9864ab911/68747470733a2f2f7472617669732d63692e6f72672f426568617463682f636f6e74657874732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Behatch/contexts)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/1fd7cd4c681b72d7088a22e21a1251dacebe0fb0b4a77cc7b8a9a6ab5fd784ed/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f426568617463682f636f6e74657874732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Behatch/contexts/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/277bdaa9b10630494c5d1571b5420a53ac073ad5301c7069fb1ef49873786b21/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f426568617463682f636f6e74657874732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Behatch/contexts/?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/c3779c6e7dd07fa838173d5ca53a64fbc04b16b626552e68344c0f792b5fbf6e/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f65643038656130362d393363322d346239302d623635622d3433363433303262353130382f6d696e692e706e67)](https://insight.sensiolabs.com/projects/ed08ea06-93c2-4b90-b65b-4364302b5108)

Behatch contexts provide most common Behat tests.

Installation
------------

[](#installation)

This extension requires:

- Behat 3+
- Mink
- Mink extension

### Project dependency

[](#project-dependency)

1. [Install Composer](https://getcomposer.org/download/)
2. Require the package with Composer:

```
$ composer require --dev behatch/contexts

```

3. Activate extension by specifying its class in your `behat.yml`:

```
# behat.yml
default:
    # ...
    extensions:
        Behatch\Extension: ~
```

### Project bootstraping

[](#project-bootstraping)

1. Download the Behatch skeleton with composer:

```
$ php composer.phar create-project behatch/skeleton

```

Browser, json, table and rest step need a mink configuration, see [Mink extension](https://github.com/Behat/MinkExtension) for more information.

Usage
-----

[](#usage)

In `behat.yml`, enable desired contexts:

```
default:
    suites:
        default:
            contexts:
                - behatch:context:browser
                - behatch:context:debug
                - behatch:context:system
                - behatch:context:json
                - behatch:context:table
                - behatch:context:rest
                - behatch:context:xml
```

### Examples

[](#examples)

This project is self-tested, you can explore the [features directory](./tests/features) to find some examples.

Configuration
-------------

[](#configuration)

- `browser` - more browser related steps (like mink)
    - `timeout` - default timeout
- `debug` - helper steps for debugging
    - `screenshotDir` - the directory where store screenshots
- `system` - shell related steps
    - `root` - the root directory of the filesystem
- `json` - JSON related steps
    - `evaluationMode` - javascript "foo.bar" or php "foo-&gt;bar"
- `table` - play with HTML the tables
- `rest` - send GET, POST, ... requests and test the HTTP headers
- `xml` - XML related steps

### Configuration Example

[](#configuration-example)

For example, if you want to change default directory to screenshots - you can do it this way:

```
default:
    suites:
        default:
            contexts:
                - behatch:context:debug:
                    screenshotDir: "var"
```

Translation
-----------

[](#translation)

[![See more information on Transifex.com](https://camo.githubusercontent.com/26cc720af99f6e76a5fca51d9a14d9843efe813fd5d0c565cb4c949094c7bf6c/68747470733a2f2f7777772e7472616e73696665782e636f6d2f70726f6a656374732f702f626568617463682d636f6e74657874732f7265736f757263652f656e786c6966662f63686172742f696d6167655f706e67)](https://www.transifex.com/projects/p/behatch-contexts/)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 82.4% 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 ~101 days

Recently: every ~63 days

Total

23

Last Release

2825d ago

Major Versions

1.4 → 2.02014-04-21

1.5 → 2.22015-06-03

2.8.0 → 3.0.02017-11-23

2.x-dev → 3.1.02018-03-11

PHP version history (3 changes)2.2PHP ~5.4

2.3PHP &gt;=5.4

2.8.0PHP &gt;=5.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/e48253fa8cfe370a3e98b94268de76e8c8ac687a2e2b39feef881a940aeb66ac?d=identicon)[damien-list](/maintainers/damien-list)

---

Top Contributors

[![sanpii](https://avatars.githubusercontent.com/u/113045?v=4)](https://github.com/sanpii "sanpii (459 commits)")[![chorry](https://avatars.githubusercontent.com/u/699112?v=4)](https://github.com/chorry "chorry (7 commits)")[![tophsic](https://avatars.githubusercontent.com/u/930980?v=4)](https://github.com/tophsic "tophsic (7 commits)")[![tyx](https://avatars.githubusercontent.com/u/245494?v=4)](https://github.com/tyx "tyx (6 commits)")[![gpenverne](https://avatars.githubusercontent.com/u/401993?v=4)](https://github.com/gpenverne "gpenverne (6 commits)")[![dunglas](https://avatars.githubusercontent.com/u/57224?v=4)](https://github.com/dunglas "dunglas (5 commits)")[![davialexandre](https://avatars.githubusercontent.com/u/388373?v=4)](https://github.com/davialexandre "davialexandre (5 commits)")[![EmmanuelVella](https://avatars.githubusercontent.com/u/663607?v=4)](https://github.com/EmmanuelVella "EmmanuelVella (5 commits)")[![ilovemistakes](https://avatars.githubusercontent.com/u/1580540?v=4)](https://github.com/ilovemistakes "ilovemistakes (4 commits)")[![pborreli](https://avatars.githubusercontent.com/u/77759?v=4)](https://github.com/pborreli "pborreli (4 commits)")[![gimler](https://avatars.githubusercontent.com/u/200904?v=4)](https://github.com/gimler "gimler (4 commits)")[![razbakov](https://avatars.githubusercontent.com/u/298778?v=4)](https://github.com/razbakov "razbakov (4 commits)")[![areyt](https://avatars.githubusercontent.com/u/1827073?v=4)](https://github.com/areyt "areyt (3 commits)")[![badaz](https://avatars.githubusercontent.com/u/5735255?v=4)](https://github.com/badaz "badaz (3 commits)")[![damien-list](https://avatars.githubusercontent.com/u/1785580?v=4)](https://github.com/damien-list "damien-list (3 commits)")[![GabrielCW](https://avatars.githubusercontent.com/u/15729946?v=4)](https://github.com/GabrielCW "GabrielCW (3 commits)")[![jdecool](https://avatars.githubusercontent.com/u/433926?v=4)](https://github.com/jdecool "jdecool (3 commits)")[![matts2cant](https://avatars.githubusercontent.com/u/1333408?v=4)](https://github.com/matts2cant "matts2cant (3 commits)")[![tekante](https://avatars.githubusercontent.com/u/223075?v=4)](https://github.com/tekante "tekante (3 commits)")[![kbsali](https://avatars.githubusercontent.com/u/53676?v=4)](https://github.com/kbsali "kbsali (2 commits)")

---

Tags

BDDSymfony2ContextBehat

### Embed Badge

![Health badge](/badges/damien-list-contexts/health.svg)

```
[![Health](https://phpackages.com/badges/damien-list-contexts/health.svg)](https://phpackages.com/packages/damien-list-contexts)
```

###  Alternatives

[soyuka/contexts

Behatch contexts

282.1M11](/packages/soyuka-contexts)[dmarynicz/behat-parallel-extension

Parallel extension for Behat

27544.3k](/packages/dmarynicz-behat-parallel-extension)[novaway/common-contexts

Novaway Behat common contexts

18187.8k3](/packages/novaway-common-contexts)[marcortola/behat-seo-contexts

Behat extension for testing some On-Page SEO factors: meta title/description, canonical, hreflang, meta robots, robots.txt, redirects, sitemap validation, HTML validation, performance...

13153.8k](/packages/marcortola-behat-seo-contexts)

PHPackages © 2026

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