PHPackages                             linkorb/transmogrifierextension - 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. linkorb/transmogrifierextension

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

linkorb/transmogrifierextension
===============================

Behat Extension for the Transmogrifier database fixture library

v2.0.0(11y ago)2511MITPHPCI failing

Since Feb 26Pushed 11y ago10 watchersCompare

[ Source](https://github.com/linkorb/transmogrifierextension)[ Packagist](https://packagist.org/packages/linkorb/transmogrifierextension)[ Docs](http://www.github.com/linkorb/transmogrifierextension)[ RSS](/packages/linkorb-transmogrifierextension/feed)WikiDiscussions master Synced 2mo ago

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

Transmogrifier Behat Extension
==============================

[](#transmogrifier-behat-extension)

[![](https://camo.githubusercontent.com/c42124be57bbdbddd39128d209176dfbb138b8854d5c59821b0f25836f5e8bd4/687474703a2f2f7777772e6c696e6b6f72622e636f6d2f642f6f6e6c696e652f6c696e6b6f72622f75706c6f61642f7472616e736d6f677269666965722e676966)](https://camo.githubusercontent.com/c42124be57bbdbddd39128d209176dfbb138b8854d5c59821b0f25836f5e8bd4/687474703a2f2f7777772e6c696e6b6f72622e636f6d2f642f6f6e6c696e652f6c696e6b6f72622f75706c6f61642f7472616e736d6f677269666965722e676966)

Transmogrifier is a tool to help setup your database fixtures before running your tests.

This is repository contains the Transmogrifier Extension for Behat.

This allows you to use Transmogrifier directly from your Behat `.feature` files!

Adding the extension will activate a few new Gherkin commands to help you initialize your database testing fixtures.

Installing the extension through composer
-----------------------------------------

[](#installing-the-extension-through-composer)

Open your `composer.json` file, and add this to the `require` section:

```
"linkorb/transmogrifierextension": "dev-master"
```

Enabling the Behat extension
----------------------------

[](#enabling-the-behat-extension)

Edit your `features/bootstrap/FeatureContext.php` file, and add the following line to the `__construct` method:

```
$this->useContext(
    'transmogrifier',
    new \LinkORB\TransmogrifierExtension\TransmogrifierContext($parameters)
);
```

### How to use the extension in your .feature files

[](#how-to-use-the-extension-in-your-feature-files)

You can use the following new syntax in your `.feature` files:

```
    Scenario: Applying a yml dataset to the `test` database
        Given I connect to database "test"
        When I apply dataset "user.yml"
        Then I should have "2" records in the "user" table
```

This example scenario will tell Behat to connect to the database `test`, load dataset `user.yml`, and apply it. After that it will verify the `user` table contains 2 records (just like the yml file).

### Configuring the extension in behat.yml

[](#configuring-the-extension-in-behatyml)

For this to work, you will need to tell Behat and Transmogrifier where to find your datasets, and where to find your database config files.

Edit your `behat.yml` file, and add the following:

```
default:
    extensions:
        LinkORB\TransmogrifierExtension\Extension:
            dbconf_dir: /share/config/database/
            dataset_dir: example/
```

These paths can be either absolute or relative from the directory where you start Behat.

Behat example
-------------

[](#behat-example)

The `features/` directory in this repository contains a fully functional `transmogrifier.feature` file.

More info?
==========

[](#more-info)

Check the Transmogrifier repo for more information:

Brought to you by the LinkORB Engineering team
----------------------------------------------

[](#brought-to-you-by-the-linkorb-engineering-team)

[![](https://camo.githubusercontent.com/62fb66b034de7ea7fca9fd9776424b5348daa76ef8622caf92c2f7622003e5ef/687474703a2f2f7777772e6c696e6b6f72622e636f6d2f642f6d6574612f74696572312f696d616765732f6c696e6b6f7262656e67696e656572696e672d6c6f676f2e706e67)](https://camo.githubusercontent.com/62fb66b034de7ea7fca9fd9776424b5348daa76ef8622caf92c2f7622003e5ef/687474703a2f2f7777772e6c696e6b6f72622e636f6d2f642f6d6574612f74696572312f696d616765732f6c696e6b6f7262656e67696e656572696e672d6c6f676f2e706e67)
Check out our other projects at [linkorb.com/engineering](http://www.linkorb.com/engineering).

Btw, we're hiring!

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~3 days

Total

3

Last Release

4087d ago

Major Versions

v1.1.0 → v2.0.02015-03-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/1db66b320db18b8036ea68211b7d8a39e7c6da97e6fd29f59a50380ebb69d0bb?d=identicon)[joostfaassen](/maintainers/joostfaassen)

---

Top Contributors

[![congpeijun](https://avatars.githubusercontent.com/u/881552?v=4)](https://github.com/congpeijun "congpeijun (6 commits)")[![joostfaassen](https://avatars.githubusercontent.com/u/411113?v=4)](https://github.com/joostfaassen "joostfaassen (6 commits)")

---

Tags

phptestingFixturedatabaseBehatextensiontransmogrifier

### Embed Badge

![Health badge](/badges/linkorb-transmogrifierextension/health.svg)

```
[![Health](https://phpackages.com/badges/linkorb-transmogrifierextension/health.svg)](https://phpackages.com/packages/linkorb-transmogrifierextension)
```

###  Alternatives

[laracasts/behat-laravel-extension

Laravel extension for Behat

2611.3M12](/packages/laracasts-behat-laravel-extension)[drupal/tqextension

Behat extension for testing Drupal sites

1134.4k](/packages/drupal-tqextension)[jonathanjfshaw/phpunitbehat

Use Behat from within PHPUnit.

2143.8k1](/packages/jonathanjfshaw-phpunitbehat)[soulcodex/laravel-behat

Laravel Extension for easy integration with Behat

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

PHPackages © 2026

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