PHPackages                             guidofaecke/mezzio-doctrine-odm - 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. guidofaecke/mezzio-doctrine-odm

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

guidofaecke/mezzio-doctrine-odm
===============================

Doctrine ODM Factories for Mezzio

1.0.1(3y ago)04BSD-2-ClausePHPPHP ~8.1.0 || ~8.2.0

Since Dec 15Pushed 3y ago1 watchersCompare

[ Source](https://github.com/guidofaecke/mezzio-doctrine-odm)[ Packagist](https://packagist.org/packages/guidofaecke/mezzio-doctrine-odm)[ RSS](/packages/guidofaecke-mezzio-doctrine-odm/feed)WikiDiscussions 1.0.x Synced yesterday

READMEChangelog (2)Dependencies (10)Versions (6)Used By (0)

mezzio-doctrine-odm: Doctrine ODM Factories for Mezzio (PSR-11 Containers)
==========================================================================

[](#mezzio-doctrine-odm-doctrine-odm-factories-for-mezzio-psr-11-containers)

[Doctrine](https://github.com/doctrine) factories for Mezzio [PSR-11 containers](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-11-container.md).

This package provides a set of factories to be used with containers using the PSR-11 standard for an easy Doctrine ODM (Mongo) integration in a project. This project is based on the work of [@Roave](https://github.com/Roave/psr-container-doctrine).

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

[](#installation)

The easiest way to install this package is through composer:

```
$ composer require guidofaecke/mezzio-doctrine-odm
```

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

[](#configuration)

In the general case where you are only using a single connection, it's enough to define the entity manager factory:

```
return [
    'dependencies' => [
        'factories' => [
            DocumentManager::class => \GuidoFaecke\MezzioDoctrineOdm\DocumentManagerFactory::class,
        ],
    ],
];
```

Each factory supplied by this package will by default look for a registered factory in the container. If it cannot find one, it will automatically pull its dependencies from on-the-fly created factories. This saves you the hassle of registering factories in your container which you may not need at all. Of course, you can always register those factories when required. The following additional factories are available:

- `\GuidoFaecke\PsrContainerDoctrine\CacheFactory` (doctrine.cache.\*)
- `\GuidoFaecke\MezzioDoctrineOdm\ConnectionFactory` (doctrine.connection.\*)
- `\GuidoFaecke\MezzioDoctrineOdm\ConfigurationFactory` (doctrine.configuration.\*)
- `\GuidoFaecke\MezzioDoctrineOdm\DriverFactory` (doctrine.driver.\*)

Each of those factories supports the same static behavior as the entity manager factory. For container specific configurations, there are a few examples provided in the example directory:

- [Aura.Di](example/aura-di.php)
- [PimpleInterop](example/pimple-interop.php)
- [Laminas\\ServiceManager](example/laminas-servicemanager.php)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

3

Last Release

1297d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/06a3a03690d419daef0cef7a3730a0210da9bed57566a160c0b00fece3090acb?d=identicon)[gfaecke](/maintainers/gfaecke)

---

Top Contributors

[![guidofaecke](https://avatars.githubusercontent.com/u/5722331?v=4)](https://github.com/guidofaecke "guidofaecke (16 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/guidofaecke-mezzio-doctrine-odm/health.svg)

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

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M738](/packages/sylius-sylius)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k51.2M339](/packages/api-platform-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[oro/platform

Business Application Platform (BAP)

645143.5k115](/packages/oro-platform)

PHPackages © 2026

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