PHPackages                             diegograssato/doctrine-odm-datafixture - 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-odm-datafixture

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

diegograssato/doctrine-odm-datafixture
======================================

Module to generate fixture with Doctrine ODM

2.1(7y ago)3632MITPHPPHP ^5.6 || ^7.2

Since Nov 17Pushed 7y ago4 watchersCompare

[ Source](https://github.com/diegograssato/doctrine-odm-datafixture)[ Packagist](https://packagist.org/packages/diegograssato/doctrine-odm-datafixture)[ Docs](https://diegograssato.github.io/doctrine-odm-datafixture)[ RSS](/packages/diegograssato-doctrine-odm-datafixture/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (7)Dependencies (6)Versions (8)Used By (0)

DoctrineMongoODMDatafixture
===========================

[](#doctrinemongoodmdatafixture)

Module to generate fixture with Doctrine ODM

Instalation
-----------

[](#instalation)

To install is quite simple, add the **composer.json:**

```
    "diegograssato/doctrine-odm-datafixture": "2.0"

```

Next step is to update the composer

```
  composer self-update

```

```
  composer install

```

Then add **DoctrineMongoODMDatafixture** to your **config/application.config.php**.

In **module.config.php** you should inform the folder where your fixtures, for example:

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

```

or group configurator

```
    'odm_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 odm:fixtures:load

```

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

```
  vendor/bin/doctrine-module odm: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 odm:fixture:load --fixture=/path/to/fixtures1 --fixture=/path/to/fixtures2 --append

```

You can also optionally specify the group configuration:

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

```

You can also optionally list the fixtures:

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

```

Finish!

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 61.5% 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 ~99 days

Recently: every ~139 days

Total

7

Last Release

2870d ago

Major Versions

1.3 → 2.02017-11-04

PHP version history (2 changes)v1.0PHP ^5.6 || ^7.0

2.1PHP ^5.6 || ^7.2

### Community

Maintainers

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

---

Top Contributors

[![grassato](https://avatars.githubusercontent.com/u/17568672?v=4)](https://github.com/grassato "grassato (16 commits)")[![diegograssato](https://avatars.githubusercontent.com/u/791769?v=4)](https://github.com/diegograssato "diegograssato (8 commits)")[![jeanfinck](https://avatars.githubusercontent.com/u/4331028?v=4)](https://github.com/jeanfinck "jeanfinck (1 commits)")[![juizmill](https://avatars.githubusercontent.com/u/1959742?v=4)](https://github.com/juizmill "juizmill (1 commits)")

---

Tags

datafixturedoctrine-odmdoctrine2doctrinemongoodmdatafixturefixturesgroupsmongodbodmFixturedoctrinemodulezf2zf3zdeveloper

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/diegograssato-doctrine-odm-datafixture/health.svg)

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

###  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)
