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

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

codeedu/zendexpr-doctrine-fixture
=================================

Zend Expressive Library that provides Doctrine Data-Fixture functionality

0.1.1(5y ago)47.8k11MITPHPPHP ^7.1CI failing

Since Jun 9Pushed 5y ago2 watchersCompare

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

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

[![Build Status](https://camo.githubusercontent.com/1230da9906a81a4080972de9b7376214e1089ff8e878b4dafd27de580739dc9b/68747470733a2f2f7472617669732d63692e6f72672f636f64656564752f7a656e64657870722d646f637472696e652d666978747572652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/codeedu/zendexpr-doctrine-fixture)

About
-----

[](#about)

This library provides integration with Zend Expressive and Doctrine Data Fixture. Also support PSR-11.

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

[](#get-started)

##### Instalation

[](#instalation)

```
composer require codeedu/zendexpr-doctrine-fixture:0.1.1
```

##### Registering Fixtures

[](#registering-fixtures)

To register fixtures add the fixtures in your configuration.

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

Register factory to create the command:

```
[
      'factories' => [
         'doctrine:fixtures_cmd:load'   => \CodeEdu\FixtureFactory::class
      ]
];
```

We suggest to configure Doctrine ORM and commands with Zend Expressive using this [gist](https://gist.github.com/argentinaluiz/a14df7b1ef73cc111b280e417f84ba92). This configuration uses [DoctrineModule](https://github.com/doctrine/DoctrineModule). DoctrineModule provides easily configuration to integration Doctrine ORM in Zend Framework 2 Applications, so the approach is enjoy it.

Now in **doctrine.config.php**, so add **doctrine:fixtures\_cmd:load** to:

```
$command = [
   //.....,
   'doctrine:fixtures_cmd:load'
];
```

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

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.9% 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 ~487 days

Total

4

Last Release

2170d 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://www.gravatar.com/avatar/60b6dc2f798f8a2402639b103bca968e0795c2820076504e032ac468f0837e56?d=identicon)[argentinaluiz](/maintainers/argentinaluiz)

---

Top Contributors

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

---

Tags

Fixturedoctrineexpressivezend-expressive

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[doctrine/doctrine-fixtures-bundle

Symfony DoctrineFixturesBundle

2.5k107.1M846](/packages/doctrine-doctrine-fixtures-bundle)[hautelook/alice-bundle

Symfony bundle to manage fixtures with Alice and Faker.

19519.4M34](/packages/hautelook-alice-bundle)[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58723.9M36](/packages/scienta-doctrine-json-functions)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

4542.8M](/packages/damienharper-auditor-bundle)[ergebnis/factory-bot

Provides a fixture factory for doctrine/orm entities.

81702.8k](/packages/ergebnis-factory-bot)

PHPackages © 2026

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