PHPackages                             dcs/role-provider-orm-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. dcs/role-provider-orm-bundle

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

dcs/role-provider-orm-bundle
============================

The DCSRoleProviderORMBundle provides the management of user roles using Doctrine ORM

09[1 issues](https://github.com/damianociarla/DCSRoleProviderORMBundle/issues)PHP

Since Dec 31Pushed 9y ago1 watchersCompare

[ Source](https://github.com/damianociarla/DCSRoleProviderORMBundle)[ Packagist](https://packagist.org/packages/dcs/role-provider-orm-bundle)[ RSS](/packages/dcs-role-provider-orm-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Build Status](https://camo.githubusercontent.com/7e3849679faaf79c274222cba2190e2ea9f1b28d0d55f1907a9f8f8773837535/68747470733a2f2f7472617669732d63692e6f72672f64616d69616e6f636961726c612f444353526f6c6550726f76696465724f524d42756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/damianociarla/DCSRoleProviderORMBundle)[![Coverage Status](https://camo.githubusercontent.com/911eab97b7d368dab00d361811ee78f80f5a8228f7b1157795ca4cc61f7b1e8d/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f64616d69616e6f636961726c612f444353526f6c6550726f76696465724f524d42756e646c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/damianociarla/DCSRoleProviderORMBundle?branch=master)

DCSRoleProviderORMBundle
========================

[](#dcsroleproviderormbundle)

This bundle provides the provider implementation for [DCSRoleCoreBundle](https://github.com/damianociarla/DCSRoleCoreBundle). This provider is built in on **Doctrine ORM** and performs a mapping of the [Role](https://github.com/damianociarla/DCSRoleProviderORMBundle/blob/master/src/Model/Role.php) class.

To manage the roles through your User class this bundle provides the [UserRoleCollection](https://github.com/damianociarla/DCSRoleProviderORMBundle/blob/master/src/Model/UserRoleCollection.php) trait.

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

[](#installation)

### Prerequisites

[](#prerequisites)

This bundle requires [DCSRoleCoreBundle](https://github.com/damianociarla/DCSRoleCoreBundle).

### Require the bundle

[](#require-the-bundle)

Run the following command:

```
$ composer require dcs/role-provider-orm-bundle "~1.0@dev"

```

Composer will install the bundle to your project's `vendor/dcs/role-provider-orm-bundle` directory.

### Enable the bundle

[](#enable-the-bundle)

Enable the bundle in the kernel:

```

```

### Update your User class

[](#update-your-user-class)

In this step you'll need to update your **User** class to make it compatible with the **Role** class created in the previous step. For convenience, we will use the [UserRoleCollection](https://github.com/damianociarla/DCSRoleProviderORMBundle/blob/master/src/Model/UserRoleCollection.php) trait.

##### Annotations

[](#annotations-1)

```

```

### Configure

[](#configure)

Now that you have properly enabled this bundle, the next step is to configure it to work with the specific needs of your application.

Add the following configuration to your `config.yml`.

```
dcs_role_provider_orm:
    model_class: AcmeBundle\Entity\Role

```

The following lines provide the configuration for the **DCSRoleCoreBundle**.

```
dcs_role_core:
    provider: dcs_role.provider.orm

```

Reporting an issue or a feature request
=======================================

[](#reporting-an-issue-or-a-feature-request)

Issues and feature requests are tracked in the [Github issue tracker](https://github.com/damianociarla/DCSRoleProviderORMBundle/issues).

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![damianociarla](https://avatars.githubusercontent.com/u/2201712?v=4)](https://github.com/damianociarla "damianociarla (20 commits)")

### Embed Badge

![Health badge](/badges/dcs-role-provider-orm-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/dcs-role-provider-orm-bundle/health.svg)](https://phpackages.com/packages/dcs-role-provider-orm-bundle)
```

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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