PHPackages                             mdjward/behat-env-var-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. mdjward/behat-env-var-extension

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

mdjward/behat-env-var-extension
===============================

Behat extension to make environment variables available as container parameters

1.0.1(9y ago)182[1 issues](https://github.com/mdjward/behat-env-var-extension/issues)MITPHPPHP &gt;=5.4.0

Since Nov 8Pushed 9y ago1 watchersCompare

[ Source](https://github.com/mdjward/behat-env-var-extension)[ Packagist](https://packagist.org/packages/mdjward/behat-env-var-extension)[ Docs](https://github.com/mdjward/behat-env-var-extension)[ RSS](/packages/mdjward-behat-env-var-extension/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (3)Used By (0)

Behat environment variable extension
====================================

[](#behat-environment-variable-extension)

[![Build Status](https://camo.githubusercontent.com/cb5b8253d7e59f4e7f9e7b4d4ceb41c629533d4c8a586b4618fe1f66aa420d1f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d646a776172642f62656861742d656e762d7661722d657874656e73696f6e2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mdjward/behat-env-var-extension/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e12ef672cf168e3f7363ddf8d642404d00b745fa72ce39c629fe8fa378f760ba/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d646a776172642f62656861742d656e762d7661722d657874656e73696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mdjward/behat-env-var-extension/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/78c4b03658ae0af7a01a18f4a44cd479596540fd3f978224aed2b3c54bafc11b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d646a776172642f62656861742d656e762d7661722d657874656e73696f6e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mdjward/behat-env-var-extension/?branch=master)

An extension to [Behat](http://behat.org/) to support the ingestion of environment variables into container parameters, for use in behat configuration.

Example usage
-------------

[](#example-usage)

Configure the extension as follows under Behat:

```
  extensions:
    Mdjward\Behat\EnvVarExtension:
      prefix: env
```

Any environment variables passed through to Behat will - as a consequence - be registered in the service container as parameters in the form:

`env.environment_variable_name`

...where `environment_variable_name` is the lower-case form of a given environment variable. For example, a variable `MY_TEST_ENV` will be registered as `env.my_test_env`.

The `prefix` parameter is entirely optional, and will default to 'env' if not specified.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

3521d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4046455?v=4)[Matt Ward](/maintainers/mdjward)[@mdjward](https://github.com/mdjward)

---

Top Contributors

[![mdjward](https://avatars.githubusercontent.com/u/4046455?v=4)](https://github.com/mdjward "mdjward (15 commits)")

---

Tags

dependency-injectionBDDenvironmentenvBehatextensionservice containerenvironment variables

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mdjward-behat-env-var-extension/health.svg)

```
[![Health](https://phpackages.com/badges/mdjward-behat-env-var-extension/health.svg)](https://phpackages.com/packages/mdjward-behat-env-var-extension)
```

###  Alternatives

[zalas/behat-no-extension

The ultimate Behat extension

31138.7k1](/packages/zalas-behat-no-extension)[laracasts/behat-laravel-extension

Laravel extension for Behat

2611.3M13](/packages/laracasts-behat-laravel-extension)[dmarynicz/behat-parallel-extension

Parallel extension for Behat

28605.7k3](/packages/dmarynicz-behat-parallel-extension)[soulcodex/laravel-behat

Laravel Extension for easy integration with Behat

1764.2k](/packages/soulcodex-laravel-behat)

PHPackages © 2026

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