PHPackages                             codeedu/zend-doctrine-fixture - 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. codeedu/zend-doctrine-fixture

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

codeedu/zend-doctrine-fixture
=============================

Zend Library that provides Doctrine Data-Fixture functionality

0.1.0(6y ago)03.0k1MITPHPPHP ^7.1

Since Sep 24Pushed 6y ago2 watchersCompare

[ Source](https://github.com/codeedu/zend-doctrine-fixture)[ Packagist](https://packagist.org/packages/codeedu/zend-doctrine-fixture)[ RSS](/packages/codeedu-zend-doctrine-fixture/feed)WikiDiscussions master Synced today

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

About
-----

[](#about)

This library provides integration with Zend Framework and Doctrine Data Fixture. Also support PSR-11. It's based in [zendexpr-doctrine-fixture](https://github.com/codeedu/zendexpr-doctrine-fixture.git)

Get started
-----------

[](#get-started)

##### Instalation

[](#instalation)

```
composer require codeedu/zend-doctrine-fixture:0.0.1
```

##### Registering Fixtures

[](#registering-fixtures)

To register fixtures add the fixtures in your configuration.

```
[
      'doctrine' => [
            'fixtures' => [
                  'MyFixtures' => __DIR__ . '/../src/Fixture',
            ]
      ]
];
```

Register the module in modules.config.php:

```
      'CodeEdu\DoctrineFixture'
```

Usage
-----

[](#usage)

#### Command Line

[](#command-line)

Access the Doctrine command line as following

#### Import

[](#import)

```
./vendor/bin/doctrine-module data-fixture:import
```

Dependency Injection with Fixtures
----------------------------------

[](#dependency-injection-with-fixtures)

This library provides inject the service container in fixtures. So add interface **FixtureContainerInterface**, see below:

```
class MyFixture implements FixtureInterface, FixtureContainerInterface
{
    private $container;

    public function load(ObjectManager $manager){
        $myService = $this->container->get(MyService::class);
    }

    public function getContainer()
    {
        return $this->container;
    }

    public function setContainer(ContainerInterface $container)
    {
        $this->container = $container;
    }
}
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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

Total

3

Last Release

2543d ago

PHP version history (3 changes)0.0.1PHP ^5.5 || ^7.0

0.0.2PHP ^5.6 || ^7.0

0.1.0PHP ^7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4926329?v=4)[Luiz Carlos](/maintainers/argentinaluiz)[@argentinaluiz](https://github.com/argentinaluiz)

---

Top Contributors

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

---

Tags

Fixturedoctrinezf2zf3

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/codeedu-zend-doctrine-fixture/health.svg)

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

###  Alternatives

[hounddog/doctrine-data-fixture-module

Zend Framework 2 Module that provides Doctrine Data-Fixture functionality

37336.2k9](/packages/hounddog-doctrine-data-fixture-module)[mamuz/mamuz-blog

Provides blog feature for ZF2 with Doctrine

101.1k1](/packages/mamuz-mamuz-blog)

PHPackages © 2026

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