PHPackages                             php-arsenal/doctrine-odm-repository-service-compiler-pass - 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. php-arsenal/doctrine-odm-repository-service-compiler-pass

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

php-arsenal/doctrine-odm-repository-service-compiler-pass
=========================================================

Autoconfigure Doctrine ODM document repositories in Symfony as services.

0.3.0(5mo ago)17.3kMITPHPPHP &gt;=8.0

Since Jun 19Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/php-arsenal/doctrine-odm-repository-service-compiler-pass)[ Packagist](https://packagist.org/packages/php-arsenal/doctrine-odm-repository-service-compiler-pass)[ RSS](/packages/php-arsenal-doctrine-odm-repository-service-compiler-pass/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (5)Dependencies (4)Versions (6)Used By (0)

doctrine-odm-repository-service-compiler-pass
=============================================

[](#doctrine-odm-repository-service-compiler-pass)

Autoconfigure Doctrine ODM document repositories in Symfony as services to make them injectable into classes without the need to declare them in `services.yaml`.

`composer require php-arsenal/doctrine-odm-repository-service-compiler-pass`

[![Release](https://camo.githubusercontent.com/b5bda7249b4a7d321bc46d68c4741846ffc72f8b23ac814f3915971424123b5b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f7068702d617273656e616c2f646f637472696e652d6f646d2d7265706f7369746f72792d736572766963652d636f6d70696c65722d70617373)](https://github.com/php-arsenal/doctrine-odm-repository-service-compiler-pass/releases)[![CI](https://camo.githubusercontent.com/b5432d21e0a789ee08e61578a821523107e6fefaeded71c7fd423f6029eab728/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7068702d617273656e616c2f646f637472696e652d6f646d2d7265706f7369746f72792d736572766963652d636f6d70696c65722d706173732f4349)](https://github.com/php-arsenal/doctrine-odm-repository-service-compiler-pass/actions/workflows/ci.yml)[![Packagist](https://camo.githubusercontent.com/235ae2ccb274ee33a4051e3c9d046b76f0aabc86f35267a675241abdc94a65ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068702d617273656e616c2f646f637472696e652d6f646d2d7265706f7369746f72792d736572766963652d636f6d70696c65722d70617373)](https://packagist.org/packages/php-arsenal/doctrine-odm-repository-service-compiler-pass)

How to use?
-----------

[](#how-to-use)

Update your `Kernel` class to add this compiler pass.

```
use PhpArsenal\DoctrineODMRepositoryServiceCompilerPass\DocumentRepositoryAutoconfigureCompilerPass;

class Kernel extends BaseKernel
{
    use MicroKernelTrait;

    ...

    protected function build(ContainerBuilder $container): void
    {
        $container->addCompilerPass(new DocumentRepositoryAutoconfigureCompilerPass());
    }

    ...
}
```

You can also reach defined document classes through parameter `doctrine_mongodb.mongodb.odm.document_classes`

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance70

Regular maintenance activity

Popularity19

Limited adoption so far

Community7

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

Total

5

Last Release

169d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d6b568fc536653e6f22a3740f559a0ff1c2adf7892a7c764d8a6dbce49c0bc45?d=identicon)[Gyvastis](/maintainers/Gyvastis)

---

Top Contributors

[![Gyvastis](https://avatars.githubusercontent.com/u/3257577?v=4)](https://github.com/Gyvastis "Gyvastis (21 commits)")

### Embed Badge

![Health badge](/badges/php-arsenal-doctrine-odm-repository-service-compiler-pass/health.svg)

```
[![Health](https://phpackages.com/badges/php-arsenal-doctrine-odm-repository-service-compiler-pass/health.svg)](https://phpackages.com/packages/php-arsenal-doctrine-odm-repository-service-compiler-pass)
```

###  Alternatives

[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[smile/gdpr-dump

A utility to create anonymized database dumps

21633.1k1](/packages/smile-gdpr-dump)[bartlett/php-compatinfo-db

Reference Database of all functions, constants, classes, interfaces on PHP standard distribution and about 110 extensions

1183.0k1](/packages/bartlett-php-compatinfo-db)[edyan/neuralyzer

Library and CLI for Data anonymization

53147.1k2](/packages/edyan-neuralyzer)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)

PHPackages © 2026

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