PHPackages                             docteurklein/repository-service-bundle - 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. docteurklein/repository-service-bundle

ActiveSymfony-bundle

docteurklein/repository-service-bundle
======================================

A symfony bundle to help you register automatically doctrine ORM repositories as services

1.0.0(9y ago)113.2k1MITPHPPHP &gt;=5.6

Since Sep 8Pushed 9y agoCompare

[ Source](https://github.com/docteurklein/RepositoryServiceBundle)[ Packagist](https://packagist.org/packages/docteurklein/repository-service-bundle)[ RSS](/packages/docteurklein-repository-service-bundle/feed)WikiDiscussions master Synced 2mo ago

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

RepositoryServiceBundle
=======================

[](#repositoryservicebundle)

What ?
------

[](#what-)

A symfony bundle that eases creation of doctrine ORM repositories as services.

It will create a service for each registered entity in the default entity manager.

If you provide a `repository` tag for a service, it will automatically create an alias and configure doctrine to make it the custom repository class of the associated entity (specified by the `for` attribute).

How ?
-----

[](#how-)

### install

[](#install)

```
composer require docteurklein/repository-service-bundle

```

### register the bundle

[](#register-the-bundle)

```
    public function registerBundles()
    {
        $bundles = [
            new \DocteurKlein\RepositoryServiceBundle,
            // …
        ];

        return $bundles;
    }
```

Examples
--------

[](#examples)

> Note: The following examples use JmsDiExtraBundle to simplify code.

Given an entity:

```
namespace Model;

/** @ORM\Entity */
class Product
{
    /** @ORM\Id */
    private $id;
}
```

And the following service:

```
namespace Repository;

/**
 * @Service("products")
 * @Tag("repository", attributes={"for"="Model\Product"})
 */
final class Products extends EntityRepository
{
}
```

Then the DIC contains a factory service named `repo.model_product` for the repository (using `ManagerRegistry::getRepository()`).

It also contains an alias named `products` pointing to the `repo.model_product` service.

The custom repository class is automatically configured to point to `Repository\\Products`.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3534d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f1c31c81fac8f125314208689f18ddecd5f31ffb10b5485641158f3d438b6263?d=identicon)[florian.klein@free.fr](/maintainers/florian.klein@free.fr)

---

Top Contributors

[![docteurklein](https://avatars.githubusercontent.com/u/109846?v=4)](https://github.com/docteurklein "docteurklein (1 commits)")

### Embed Badge

![Health badge](/badges/docteurklein-repository-service-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/docteurklein-repository-service-bundle/health.svg)](https://phpackages.com/packages/docteurklein-repository-service-bundle)
```

###  Alternatives

[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k172.9M1.8k](/packages/symfony-security-bundle)[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

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

PHPackages © 2026

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