PHPackages                             codemonkeys-ru/repository-alias-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. [Database &amp; ORM](/categories/database)
4. /
5. codemonkeys-ru/repository-alias-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

codemonkeys-ru/repository-alias-bundle
======================================

Symfony2 bundle providing alias syntax for working with entity repositories

v0.1.3(10y ago)2521MITPHPPHP &gt;=5.3.2

Since Oct 30Pushed 10y ago2 watchersCompare

[ Source](https://github.com/CodeMonkeysRu/RepositoryAliasBundle)[ Packagist](https://packagist.org/packages/codemonkeys-ru/repository-alias-bundle)[ RSS](/packages/codemonkeys-ru-repository-alias-bundle/feed)WikiDiscussions master Synced 1mo ago

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

CodeMonkeys RepositoryAliasBundle
=================================

[](#codemonkeys-repositoryaliasbundle)

Bundle provides alternative syntax for working with entity repositories. See Example section for more.

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

[](#installation)

Install thru composer

```
php composer.phar require codemonkeys-ru/repository-alias-bundle

```

And add bundle to your AppKernel.php

```
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        ...
        new CodeMonkeysRu\RepositoryAliasBundle\RepositoryAliasBundle(),
        ...
    }
}

```

### Example

[](#example)

config.yml

```
repository_alias:
    repository_key: "project.repo"
	repository:
		blogpost: AcmeBundle:Blog\Post
		blogcomment: AcmeBundle:Blog\Comment

```

Instead of:

```
$repo = $this->getDoctrine()->getRepository('AcmeBundle:Blog\Post');
$post = new Acme\AcmeBundle\Blog\Post('title', 'post', $author);

```

Use:

```
$repo = $this->get('project.repo.blogpost'); //Note repository_key "project.repo" usage.
$post = $this->get('project.repo.blogpost')->newEntity('title', 'post', $author);

```

ChangeLog
=========

[](#changelog)

v0.1.3
------

[](#v013)

- Added getOriginalRepository decorator. Useful while configuring repos thru di container

v0.1.2
------

[](#v012)

- Added getAliasFor() method

v0.1.1
------

[](#v011)

- Added backloop interface

v0.1.0
------

[](#v010)

- Initial version

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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 ~550 days

Total

3

Last Release

3846d ago

### Community

Maintainers

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

---

Top Contributors

[![iVariable](https://avatars.githubusercontent.com/u/427486?v=4)](https://github.com/iVariable "iVariable (9 commits)")[![vladimirsavenkov](https://avatars.githubusercontent.com/u/10205806?v=4)](https://github.com/vladimirsavenkov "vladimirsavenkov (1 commits)")

---

Tags

symfonyrepositoryaliasrepository alias

### Embed Badge

![Health badge](/badges/codemonkeys-ru-repository-alias-bundle/health.svg)

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

###  Alternatives

[hautelook/alice-bundle

Symfony bundle to manage fixtures with Alice and Faker.

19519.4M34](/packages/hautelook-alice-bundle)[ambta/doctrine-encrypt-bundle

Symfony 2 bundle which allows to encrypt data in database with some encrypt algorithm

77275.7k](/packages/ambta-doctrine-encrypt-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1022.4k](/packages/rcsofttech-audit-trail-bundle)[ahmed-bhs/doctrine-doctor

Runtime analysis tool for Doctrine ORM integrated into Symfony Web Profiler. Unlike static linters, it analyzes actual query execution at runtime to detect performance bottlenecks, security vulnerabilities, and best practice violations during development with real execution context and data.

813.1k](/packages/ahmed-bhs-doctrine-doctor)[ao/translation-bundle

Doctrine as symfony translation provider + a nice gui for editing translations.

243.7k](/packages/ao-translation-bundle)

PHPackages © 2026

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