PHPackages                             carlosv2/mink-legacy-driver - 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. carlosv2/mink-legacy-driver

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

carlosv2/mink-legacy-driver
===========================

Driver for Mink/Behat providing a bridge for legacy applications

1.0.0(9y ago)014[1 PRs](https://github.com/carlosV2/mink-legacy-driver/pulls)MITPHPPHP &gt;=5.3

Since Feb 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/carlosV2/mink-legacy-driver)[ Packagist](https://packagist.org/packages/carlosv2/mink-legacy-driver)[ RSS](/packages/carlosv2-mink-legacy-driver/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (10)Versions (2)Used By (0)

mink-legacy-driver
==================

[](#mink-legacy-driver)

This project aims to provide a bridge between Mink and legacy apps. In general terms, legacy apps are not written with the best practices in mind or they are too old to support them.

[![License](https://camo.githubusercontent.com/59e86a6fc571b873c6b539c107d555a43209db4a28e5641aceb979bff31e2576/68747470733a2f2f706f7365722e707567782e6f72672f6361726c6f7376322f6d696e6b2d6c65676163792d6472697665722f6c6963656e7365)](https://packagist.org/packages/carlosv2/mink-legacy-driver)[![Build Status](https://camo.githubusercontent.com/67e00729f7490206a408f0ee4ee24c604be9773e34c6d2b922910cd8a09772e3/68747470733a2f2f7472617669732d63692e6f72672f6361726c6f7356322f6d696e6b2d6c65676163792d6472697665722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/carlosV2/mink-legacy-driver)[![SensioLabsInsight](https://camo.githubusercontent.com/d39c15c4afaa29385625bd10e1e27d2e51751fe3e3b58ea879ea82cce8f5a7dc/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f64353732323162352d396635392d346137392d626331622d3037643537386637393833322f6d696e692e706e67)](https://insight.sensiolabs.com/projects/d57221b5-9f59-4a79-bc1b-07d578f79832)

Why?
----

[](#why)

Legacy apps are hard to maintain mainly because of the lack of tests or because of very slow and painful tests. This situation produces fear to change as the side effects are unknown. In addition to this, legacy apps use to suffer from the following situations:

- No usage of composer autoload.
- Rely on PHP superglobals (like `$_GET`, `$_POST`, `$_SERVER`, etc).
- Having many frontend controllers.
- Usage of `exit`/`die` to abruptly finish the request.

### Installation

[](#installation)

Install with:

```
$ composer require --dev carlosv2/mink-legacy-driver
```

### Usage

[](#usage)

Set up your `behat.yml` file as follows:

```
default:
  extensions:
    carlosV2\LegacyDriver\Extension: ~
    Behat\MinkExtension:
      sessions:
        default:
          legacy:
            environment:
            controller:
            document_root:
            bootstrap:
```

Where:

- `environment`: Key/value array containing the environment variables. For example:

    ```
    environment:
      variable: value
      env: prod
    ```
- `controller`: Location of the frontend controller. For example:

    ```
    controller: path/to/the/controller.php
    ```

    Alternatively you can supply an array of frontend controllers. For example:

    ```
    controller:
      - path: /uri/to/match
        file: path/to/the/uri/to/match.php
      - path: /uri/to/another
        file: another/path/to/match.php
    ```

    The controllers key configures the `symfony/routing` component underneath. As a result, you can also add the `methods` and `requirements` keys. For example:

    ```
    controller:
      - path: /item/{id}
        file: process_item.php
        methods: ["GET", "PUT"]
        requirements:
          id: \d+
    ```
- `document_root`: Location of the document root. For example:

    ```
    document_root: path/to/the/document/root/
    ```
- `bootstrap`: Location of the bootstrap file to execute before every request. For example:

    ```
    bootstrap: path/to/the/bootstrap/file.php
    ```

    Alternatively you can supply multiple files to be executed before every request. For example:

    ```
    bootstrap:
      - path/to/the/bootstrap/file.php
      - another/path/to/bootstrap.php
    ```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

3362d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7bd7a8f2b6884a04c3282dea24b9e0f10e0ff33e085bcc0e48797c4afc7d8758?d=identicon)[carlosV2](/maintainers/carlosV2)

---

Tags

behatbehat-extensionbrowserheadlesslegacyminkmink-drivertestingbrowserMinkheadlessBehatlegacy

### Embed Badge

![Health badge](/badges/carlosv2-mink-legacy-driver/health.svg)

```
[![Health](https://phpackages.com/badges/carlosv2-mink-legacy-driver/health.svg)](https://phpackages.com/packages/carlosv2-mink-legacy-driver)
```

###  Alternatives

[behat/mink-browserkit-driver

Symfony2 BrowserKit driver for Mink framework

54462.0M318](/packages/behat-mink-browserkit-driver)[jcalderonzumba/mink-phantomjs-driver

PhantomJS driver for Mink framework

15910.9M63](/packages/jcalderonzumba-mink-phantomjs-driver)[robertfausk/mink-panther-driver

Symfony Panther driver for Mink framework

123.4M2](/packages/robertfausk-mink-panther-driver)[playwright-php/playwright

Modern PHP library for Playwright automation: browsing, scraping, screenshots, testing, and more.

7613.0k5](/packages/playwright-php-playwright)[polishsymfonycommunity/symfony2-mocker-extension

Behat extension for mocking services defined in the Symfony2 dependency injection container.

26253.1k4](/packages/polishsymfonycommunity-symfony2-mocker-extension)[guikingone/panther-extension

Panther extension for Mink

232.0k](/packages/guikingone-panther-extension)

PHPackages © 2026

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