PHPackages                             jgmullor/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. [Testing &amp; Quality](/categories/testing)
4. /
5. jgmullor/contexts

ActiveLibrary[Testing &amp; Quality](/categories/testing)

jgmullor/contexts
=================

Behatch contexts fork compatible with PHP8

3.3.4(3y ago)022.2k↓38.9%beerwareGherkinPHP &gt;=8

Since Jun 29Pushed 2y agoCompare

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

READMEChangelog (4)Dependencies (11)Versions (34)Used By (0)

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

[](#behatch-contexts)

This is a fork of [Behatch/contexts](https://github.com/Behatch/contexts)

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

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 81.7% 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 ~143 days

Recently: every ~270 days

Total

28

Last Release

1194d 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 (4 changes)2.2PHP ~5.4

2.3PHP &gt;=5.4

2.8.0PHP &gt;=5.5

3.3.2PHP &gt;=8

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1301633?v=4)[José Gilberto Mullor](/maintainers/jgmullor)[@jgmullor](https://github.com/jgmullor)

---

Top Contributors

[![sanpii](https://avatars.githubusercontent.com/u/113045?v=4)](https://github.com/sanpii "sanpii (461 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)")[![jgmullor](https://avatars.githubusercontent.com/u/1301633?v=4)](https://github.com/jgmullor "jgmullor (7 commits)")[![gpenverne](https://avatars.githubusercontent.com/u/401993?v=4)](https://github.com/gpenverne "gpenverne (6 commits)")[![tyx](https://avatars.githubusercontent.com/u/245494?v=4)](https://github.com/tyx "tyx (6 commits)")[![EmmanuelVella](https://avatars.githubusercontent.com/u/663607?v=4)](https://github.com/EmmanuelVella "EmmanuelVella (5 commits)")[![davialexandre](https://avatars.githubusercontent.com/u/388373?v=4)](https://github.com/davialexandre "davialexandre (5 commits)")[![dunglas](https://avatars.githubusercontent.com/u/57224?v=4)](https://github.com/dunglas "dunglas (5 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)")[![ilovemistakes](https://avatars.githubusercontent.com/u/1580540?v=4)](https://github.com/ilovemistakes "ilovemistakes (4 commits)")[![razbakov](https://avatars.githubusercontent.com/u/298778?v=4)](https://github.com/razbakov "razbakov (4 commits)")[![badaz](https://avatars.githubusercontent.com/u/5735255?v=4)](https://github.com/badaz "badaz (3 commits)")[![matts2cant](https://avatars.githubusercontent.com/u/1333408?v=4)](https://github.com/matts2cant "matts2cant (3 commits)")[![jdecool](https://avatars.githubusercontent.com/u/433926?v=4)](https://github.com/jdecool "jdecool (3 commits)")[![GabrielCW](https://avatars.githubusercontent.com/u/15729946?v=4)](https://github.com/GabrielCW "GabrielCW (3 commits)")[![areyt](https://avatars.githubusercontent.com/u/1827073?v=4)](https://github.com/areyt "areyt (3 commits)")[![tekante](https://avatars.githubusercontent.com/u/223075?v=4)](https://github.com/tekante "tekante (3 commits)")[![wadjei](https://avatars.githubusercontent.com/u/344321?v=4)](https://github.com/wadjei "wadjei (2 commits)")

---

Tags

BDDSymfony2ContextBehat

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/jgmullor-contexts/health.svg)](https://phpackages.com/packages/jgmullor-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)[macpaw/behat-messenger-context

Behat Context for testing Symfony Messenger component

16232.9k](/packages/macpaw-behat-messenger-context)[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)
