PHPackages                             diegograssato/doctrine-data-fixture-module - 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. [Database &amp; ORM](/categories/database)
4. /
5. diegograssato/doctrine-data-fixture-module

ActiveLibrary[Database &amp; ORM](/categories/database)

diegograssato/doctrine-data-fixture-module
==========================================

Zend Framework 2 Module that provides Doctrine Data-Fixture functionality

2.0(8y ago)041MITPHPPHP ^5.6 || ^7.0

Since Oct 9Pushed 8y ago1 watchersCompare

[ Source](https://github.com/diegograssato/DoctrineDataFixtureModule)[ Packagist](https://packagist.org/packages/diegograssato/doctrine-data-fixture-module)[ Docs](http://www.doctrine-project.org/)[ RSS](/packages/diegograssato-doctrine-data-fixture-module/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (8)Versions (13)Used By (0)

DoctrineDataFixture Module for Zend Framework 3
===============================================

[](#doctrinedatafixture-module-for-zend-framework-3)

Introduction
------------

[](#introduction)

The DoctrineDataFixtureModule module intends to integrate Doctrine 2 data-fixture with Zend Framework 3 quickly and easily. The following features are intended to work out of the box:

- Doctrine ORM support
- Multiple ORM entity managers
- Multiple DBAL connections
- Support reuse existing PDO connections in DBAL

Requirements
------------

[](#requirements)

This module is designed to work with a typical [ZF2 MVC application](https://github.com/zendframework/ZendSkeletonApplication).

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

[](#installation)

Installation of this module uses composer. For composer documentation, please refer to [getcomposer.org](http://getcomposer.org/).

```
$ php composer.phar require --dev "diegograssato/doctrine-odm-datafixture": "2.0"
```

Then open `config/development.config.php` and `DoctrineDataFixtureModule` to your `modules`

#### Registering Fixtures

[](#registering-fixtures)

To register fixtures with Doctrine module add the fixtures in your configuration.

```
 'orm_fixtures' => [
     __DIR__.'/../MyModule/src/MyModule/Fixtures',
  ]

```

or group configurator

```
'orm_fixtures' => [
    'groups' => [
        'default' => [
            __DIR__.'/../MyModule/src/MyModule/Fixtures/default',
        ],
        'production' => [
             __DIR__.'/../MyModule/src/MyModule/Fixtures/production',
        ]
    ]
]
```

To rotate the fixture use the terminal command:

```
  vendor/bin/doctrine-odm-datafixture odm:fixtures:load

```

The odm:fixture:load command loads data fixtures from your bundles:

```
  vendor/bin/doctrine-module orm:fixtures:load

```

You can also optionally specify the path to fixtures with the **--fixtures** option:

```
  vendor/bin/doctrine-module orm:fixtures:load --fixture=/path/to/fixtures1 --fixture=/path/to/fixtures2

```

If you want to append the fixtures instead of flushing the database first you can use the **--append** option:

```
  vendor/bin/doctrine-module orm:fixtures:load --fixture=/path/to/fixtures1 --fixture=/path/to/fixtures2 --append

```

You can also optionally specify the group configuration:

```
  vendor/bin/doctrine-module orm:fixtures:load --group production

```

You can also optionally list the fixtures:

```
  vendor/bin/doctrine-module orm:fixtures:list --group production

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~378 days

Total

7

Last Release

3113d ago

Major Versions

0.0.6 → 2.02017-11-04

PHP version history (2 changes)0.0.1PHP &gt;=5.3.3

0.0.6PHP ^5.6 || ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b396bcf6b27ea68c6ced40ddab79457c1d7b9d7932ed90d62f234ad2553d1a2?d=identicon)[diego.grassato](/maintainers/diego.grassato)

---

Top Contributors

[![Hounddog](https://avatars.githubusercontent.com/u/1188248?v=4)](https://github.com/Hounddog "Hounddog (14 commits)")[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (14 commits)")[![diegograssato](https://avatars.githubusercontent.com/u/791769?v=4)](https://github.com/diegograssato "diegograssato (5 commits)")[![TomHAnderson](https://avatars.githubusercontent.com/u/493920?v=4)](https://github.com/TomHAnderson "TomHAnderson (3 commits)")[![caferrari](https://avatars.githubusercontent.com/u/89180?v=4)](https://github.com/caferrari "caferrari (2 commits)")[![thomaroger](https://avatars.githubusercontent.com/u/1062137?v=4)](https://github.com/thomaroger "thomaroger (1 commits)")[![grassato](https://avatars.githubusercontent.com/u/17568672?v=4)](https://github.com/grassato "grassato (1 commits)")[![adamlundrigan](https://avatars.githubusercontent.com/u/527329?v=4)](https://github.com/adamlundrigan "adamlundrigan (1 commits)")[![argentinaluiz](https://avatars.githubusercontent.com/u/4926329?v=4)](https://github.com/argentinaluiz "argentinaluiz (1 commits)")[![ackimwilliams](https://avatars.githubusercontent.com/u/4093815?v=4)](https://github.com/ackimwilliams "ackimwilliams (1 commits)")[![maxnuf](https://avatars.githubusercontent.com/u/1273539?v=4)](https://github.com/maxnuf "maxnuf (1 commits)")

---

Tags

doctrinemodulezf2data-fixture

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/diegograssato-doctrine-data-fixture-module/health.svg)

```
[![Health](https://phpackages.com/badges/diegograssato-doctrine-data-fixture-module/health.svg)](https://phpackages.com/packages/diegograssato-doctrine-data-fixture-module)
```

###  Alternatives

[hounddog/doctrine-data-fixture-module

Zend Framework 2 Module that provides Doctrine Data-Fixture functionality

37335.4k9](/packages/hounddog-doctrine-data-fixture-module)

PHPackages © 2026

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