PHPackages                             tabbi89/behat-silex-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. tabbi89/behat-silex-extension

ActiveLibrary

tabbi89/behat-silex-extension
=============================

Behat extension for silex

1.0.1(10y ago)01.1kMITPHPPHP &gt;=5.3.9

Since Dec 31Pushed 9y ago2 watchersCompare

[ Source](https://github.com/tabbi89/Behat-Silex-Extension)[ Packagist](https://packagist.org/packages/tabbi89/behat-silex-extension)[ Docs](http://github.com/tabbi89/behat-silex-extension)[ RSS](/packages/tabbi89-behat-silex-extension/feed)WikiDiscussions master Synced 2mo ago

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

BehatSilexExtension
===================

[](#behatsilexextension)

This extension offers an easy way to begin testing Silex applications with Behat. If You are familiar with Symfony2Extension for behat then setup with this extension will be very simple. Like the extension mentioned above it uses bare Application do it doesn't depend on anything else like Goutte so it is just faster in usage. On each scenario we have fresh new instance of Application. Extension offers `ApplicationDictionary` which allows to access Your application.

[![Build Status](https://camo.githubusercontent.com/1c07d6454cd5321384bedbc9b18472ae2e8b3867ac3d6c0689c9f0f92c3896a9/68747470733a2f2f7472617669732d63692e6f72672f746162626938392f42656861742d53696c65782d457874656e73696f6e2e7376673f6272616e63683d6d6173746572)](http://travis-ci.org/tabbi89/Behat-Silex-Extension)

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

[](#installation)

```
composer require behat/behat behat/mink behat/mink-extension tabbi89/behat-silex-extension --dev
```

Usage
-----

[](#usage)

Next, within your project root, create a `behat.yml` file, and add:

```
default:
    extensions:
        Tabbi89\Behat\SilexExtension:
            kernel:
                bootstrap: app/autoload.php
                class: Tabbi89\Behat\SilexExtension\Tests\TestApp\App\Application
                env: test
                debug: true
                testSession: true
        Behat\MinkExtension:
            default_session: silex
            sessions:
                silex:
                    silex: ~
```

Here, is where we reference the Silex extension, and tell Behat to use it as our default session. Extension allows some basic configuration values which will be passed to Your application (`env`, `debug`, `testSession`)

If You want to use extension with Your file as main point:

```
default:
    extensions:
        Tabbi89\Behat\SilexExtension:
            kernel:
                bootstrap: app/autoload.php
                path: app/Application.php
                env: test
                debug: true
                testSession: true
        Behat\MinkExtension:
            default_session: silex
            sessions:
                silex:
                    silex: ~
```

If You have more questions about application looks check examples in `tests/app/*` and configuration `tests/behat.yml.dist`

### ApplicationDictionary

[](#applicationdictionary)

Just include `ApplicationDictionary` trait in Your FeatureContext to access Your application:

```
use Behat\Behat\Context;
use Behat\Behat\Context\SnippetAcceptingContext;
use Tabbi89\Behat\SilexExtension\Context\ApplicationAwareContext;
use Tabbi89\Behat\SilexExtension\Context\ApplicationDictionary;

class FeatureContext implements SnippetAcceptingContext, ApplicationAwareContext
{
    use ApplicationDictionary;

    /**
     * @Given I setup application
     */
    public function iSetupApplication()
    {
        $session = $this->getService('session');
        $application = $this->getApp();
        // ...
    }
}
```

License
-------

[](#license)

This bundle is under the MIT license.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~10 days

Total

2

Last Release

3774d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/00b23dedb4e4d74d895843cb2c71ee5f35acebbb2a6c61f6082b4ecdcccdb762?d=identicon)[tabbi89](/maintainers/tabbi89)

---

Top Contributors

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

---

Tags

BDDBehatsilex

### Embed Badge

![Health badge](/badges/tabbi89-behat-silex-extension/health.svg)

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

###  Alternatives

[laracasts/behat-laravel-extension

Laravel extension for Behat

2611.3M12](/packages/laracasts-behat-laravel-extension)[sensiolabs/behat-page-object-extension

Page object extension for Behat

1166.5M27](/packages/sensiolabs-behat-page-object-extension)[dvdoug/behat-code-coverage

Generate Code Coverage reports for Behat tests

593.6M37](/packages/dvdoug-behat-code-coverage)[bex/behat-extension-driver-locator

Driver locator tool for behat extensions

385.2M4](/packages/bex-behat-extension-driver-locator)[ciaranmcnulty/behat-stepthroughextension

Extension for behat to help debug failing scenarios

601.6M5](/packages/ciaranmcnulty-behat-stepthroughextension)[soyuka/contexts

Behatch contexts

282.1M11](/packages/soyuka-contexts)

PHPackages © 2026

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