PHPackages                             esserj/rbac-user-doctrine-orm - 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. esserj/rbac-user-doctrine-orm

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

esserj/rbac-user-doctrine-orm
=============================

A module that joins zfc-rbac &amp; zfc-user in a pre-configured doctrine ORM based module

0.1.0(12y ago)79810[1 issues](https://github.com/esserj/RbacUserDoctrineOrm/issues)[1 PRs](https://github.com/esserj/RbacUserDoctrineOrm/pulls)PHPPHP &gt;=5.3.3

Since Nov 14Pushed 11y ago5 watchersCompare

[ Source](https://github.com/esserj/RbacUserDoctrineOrm)[ Packagist](https://packagist.org/packages/esserj/rbac-user-doctrine-orm)[ Docs](http://www.github.com/esserj/RbacUserDoctrineOrm/)[ RSS](/packages/esserj-rbac-user-doctrine-orm/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (5)Versions (3)Used By (0)

ORM based RbacUser module for ZF 2
==================================

[](#orm-based-rbacuser-module-for-zf-2)

RbacUserDoctrineOrm offers a module that combines ZfcRbac &amp; ZfcUser together with the Doctrine Orm module from ZF2 so that you can focus on getting started.

Requirements &amp; their dependencies
-------------------------------------

[](#requirements--their-dependencies)

- PHP 5.3 or higher
- [Zend Framework 2](http://www.github.com/zendframework/zf2)
- [ZfcRbac](https://github.com/ZF-Commons/ZfcRbac)
- [ZfcUserDoctrineOrm](https://github.com/ZF-Commons/ZfcUserDoctrineORM)
    - [ZfcUser](https://github.com/ZF-Commons/ZfcUser)
        - [ZfcBase](https://github.com/ZF-Commons/ZfcBase)
    - [DoctrineORMModule](https://github.com/doctrine/DoctrineORMModule)
        - [DoctrineModule](https://github.com/doctrine/DoctrineModule)

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

[](#installation)

Installation of RbacUserDoctrineOrm uses composer. For composer documentation, please refer to [getcomposer.org](http://getcomposer.org/).

#### Installation steps

[](#installation-steps)

1. `cd my/project/directory`
2. create a `composer.json` file with following contents:

    ```
    {
        "require": {
            "esserj/rbac-user-doctrine-orm": "dev-master"
        }
    }
    ```
3. install composer via `curl -s http://getcomposer.org/installer | php` (on windows, download  and execute it with PHP)
4. run `php composer.phar install`
5. open `my/project/directory/configs/application.config.php` and add the following to your `modules` key:

    ```
       'DoctrineModule',
       'DoctrineORMModule',
       'ZfcBase',
       'ZfcRbac',
       'ZfcUser',
       'ZfcUserDoctrineORM',
       'RbacUserDoctrineOrm',
    ```
6. run the schema-full.sql file found in `my/project/directory/vendor/esserj/rbac-user-doctrine-orm/data` or alternatively run the schema.sql if you already installed ZfcUser or ZfcRbac schemas
7. setup doctrine database parameters by adding the following to your `my/project/config/autoload/local.php`:

    ```
       'doctrine' => array(
           'connection' => array(
               // default connection name
               'orm_default' => array(
                   'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver',
                   'params' => array(
                       'host'     => 'localhost',
                       'port'     => '3306',
                       'user'     => '', //put your user here
                       'password' => '', //put your pass here
                       'dbname'   => '', //put your database here
                   )
               )
           )
       )
    ```

```
```

```

8. see the ZfcUser &amp; ZfcRbac pages for controller/view plugins to get started

Providers
---------

[](#providers)

Providers are listeners that hook into various events to provide roles and permissions. ZfcRbac ships with several providers that you can use out of the box, but none support ORM, this is where we come in:

- Generic Providers:
    - Permissions &amp; Roles (RbacUserDoctrineOrm\\Provider\\AdjacencyList\\Role): uses Doctrine ORM to inject Role entities that have permission entities compatible with the ZfcRbac RoleInterface

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.7% 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

4611d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1032205?v=4)[Jan Esser](/maintainers/esserj)[@esserj](https://github.com/esserj)

---

Top Contributors

[![esserj](https://avatars.githubusercontent.com/u/1032205?v=4)](https://github.com/esserj "esserj (26 commits)")[![runphp](https://avatars.githubusercontent.com/u/1510812?v=4)](https://github.com/runphp "runphp (3 commits)")[![acaciovilela](https://avatars.githubusercontent.com/u/2837461?v=4)](https://github.com/acaciovilela "acaciovilela (1 commits)")

---

Tags

ormdoctrineuserrbacmodulezf2

### Embed Badge

![Health badge](/badges/esserj-rbac-user-doctrine-orm/health.svg)

```
[![Health](https://phpackages.com/badges/esserj-rbac-user-doctrine-orm/health.svg)](https://phpackages.com/packages/esserj-rbac-user-doctrine-orm)
```

###  Alternatives

[hounddog/doctrine-data-fixture-module

Zend Framework 2 Module that provides Doctrine Data-Fixture functionality

37335.9k9](/packages/hounddog-doctrine-data-fixture-module)[tawfekov/zf2entityaudit

EntityAudit Module for Zend Framework2 , Doctrine2 and web interface

1710.4k](/packages/tawfekov-zf2entityaudit)

PHPackages © 2026

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