PHPackages                             kupishkis/doctrine-fixtures-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. kupishkis/doctrine-fixtures-module

ActiveZf2-module[Database &amp; ORM](/categories/database)

kupishkis/doctrine-fixtures-module
==================================

Zend Framework 2 integration with the Doctrine Fixtures library

1.1.3(8y ago)0603PHPPHP ^7.1

Since Oct 31Pushed 8y ago3 watchersCompare

[ Source](https://github.com/kupishkis/DoctrineFixturesModule)[ Packagist](https://packagist.org/packages/kupishkis/doctrine-fixtures-module)[ RSS](/packages/kupishkis-doctrine-fixtures-module/feed)WikiDiscussions master Synced 1mo ago

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

KupDoctrineFixtures module (fork of EwgoDoctrineFixtures module)
================================================================

[](#kupdoctrinefixtures-module-fork-of-ewgodoctrinefixtures-module)

About
-----

[](#about)

The KupDoctrineFixtures module provides ZF2 integration with the [Doctrine Fixtures](https://github.com/doctrine/data-fixtures) library. Difference from EwgoDoctrineFixtures is that this module actually supports fixtures loading from single file.

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

[](#installation)

```
$ php composer.phar require kupishkis/doctrine-fixtures-module
```

Add "KupDoctrineFixtures" to the list of loaded modules.

Configuration
-------------

[](#configuration)

Add the paths to the fixtures in your modules configuration

```
array(
    'doctrinefixtures' => array(
        'paths' => array(
            'MyModule' => __DIR__ . '/../src/MyModule/DataFixtures/ORM'
        )
    )
)
```

Usage
-----

[](#usage)

Create your fixture classes.
You can implement **Zend\\ServiceManager\\ServiceLocatorAwareInterface** in order to use the ServiceManager in your fixture class.
You can also directly extend **EwgoDoctrineFixtures\\Fixture\\ServiceLocatorAwareAbstractFixture** in order to get the benefits of both ServiceLocatorAwareInterface and AbstractFixture.

```
namespace MyModule\DataFixtures\ORM;

use KupDoctrineFixtures\Fixture\ServiceLocatorAwareAbstractFixture;
use Doctrine\Common\Persistence\ObjectManager;
use MyModule\Entity\User;

class LoadUserData extends ServiceLocatorAwareAbstractFixture
{
    public function load(ObjectManager $manager)
    {
        // Encode the password any way you want
        $password = $this->serviceLocator->get('MySuperEncoder')->encode('myAwesomePassword');

        $user = new User();
        $user->setUsername('test');
        $user->setPassword($password);
        $user->setPassword('test@test.com');

        $manager->persist($user);
        $manager->flush();
    }
}
```

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

See the help (--help) for options.

For more information see the [Doctrine Fixtures documentation](https://github.com/doctrine/data-fixtures).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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 ~8 days

Recently: every ~21 days

Total

11

Last Release

3029d ago

PHP version history (2 changes)1.0.0PHP ^7.0

1.1.0PHP ^7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/4dbe85ae8935bd3b405fe76bf87653058e71e911c8a1d023b5471e75b0e3fa05?d=identicon)[houngan](/maintainers/houngan)

---

Top Contributors

[![simnare](https://avatars.githubusercontent.com/u/1961741?v=4)](https://github.com/simnare "simnare (12 commits)")[![jchampion](https://avatars.githubusercontent.com/u/1262628?v=4)](https://github.com/jchampion "jchampion (2 commits)")

---

Tags

doctrine2zf2-modulefixturesdoctrinezf2

### Embed Badge

![Health badge](/badges/kupishkis-doctrine-fixtures-module/health.svg)

```
[![Health](https://phpackages.com/badges/kupishkis-doctrine-fixtures-module/health.svg)](https://phpackages.com/packages/kupishkis-doctrine-fixtures-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)[nettrine/fixtures

Doctrine Fixtures for Nette Framework

181.2M8](/packages/nettrine-fixtures)[orbitale/array-fixture

A Doctrine Data Fixture service based on PHP arrays.

1636.7k](/packages/orbitale-array-fixture)

PHPackages © 2026

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