PHPackages                             joacub/zfj-rbac - 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. joacub/zfj-rbac

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

joacub/zfj-rbac
===============

Zend Framework 3 Module that provides a layer of features of Zend\\Permissions\\Rbac

v2.5.6(10y ago)041MITPHPPHP &gt;=5.4

Since Feb 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/joacub/zfj-rbac)[ Packagist](https://packagist.org/packages/joacub/zfj-rbac)[ Docs](http://www.github.com/ZF-Commons/zfc-rbac)[ RSS](/packages/joacub-zfj-rbac/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (11)Versions (32)Used By (0)

ZfjRbac
=======

[](#zfjrbac)

[![Master Branch Build Status](https://camo.githubusercontent.com/86e082d7bd7bbbba132a2dfd6f00d4ace729fe4524a8249d5f2c9de6ca342970/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f5a462d436f6d6d6f6e732f7a66632d726261632e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/ZF-Commons/zfc-rbac)[![Coverage Status](https://camo.githubusercontent.com/ba57a8b3859221e8374f8645863af2c76fc58978df4e57745fb85895954a9447/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f5a462d436f6d6d6f6e732f7a66632d726261632f62616467652e706e67)](https://coveralls.io/r/ZF-Commons/zfc-rbac)[![Latest Stable Version](https://camo.githubusercontent.com/dc3aaeef9999347c6ba9c40565ba43bf1f1ca87fe22f3ccc2f43eb1c5794d4da/68747470733a2f2f706f7365722e707567782e6f72672f7a662d636f6d6d6f6e732f7a66632d726261632f762f737461626c652e706e67)](https://packagist.org/packages/zf-commons/zfc-rbac)[![Latest Unstable Version](https://camo.githubusercontent.com/cafa02b4662e3a4985661bc3e00e50f44737185f6ac78b8fe29e1726e19c504d/68747470733a2f2f706f7365722e707567782e6f72672f7a662d636f6d6d6f6e732f7a66632d726261632f762f756e737461626c652e706e67)](https://packagist.org/packages/zf-commons/zfc-rbac)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/a9db87eefdd9ee169276f85a115670a5322e58411fcad89a46dba1cbfff48e80/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5a462d436f6d6d6f6e732f7a66632d726261632f6261646765732f7175616c6974792d73636f72652e706e673f733d36383561326233346463363236613061663939333466396338643234366236386138636163383834)](https://scrutinizer-ci.com/g/ZF-Commons/zfc-rbac/)[![Total Downloads](https://camo.githubusercontent.com/ed4c9b7ca2f61ccfff1664e70ede88d6bea2e4e1a488279fe75e78cf93343427/68747470733a2f2f706f7365722e707567782e6f72672f7a662d636f6d6d6f6e732f7a66632d726261632f646f776e6c6f6164732e706e67)](https://packagist.org/packages/zf-commons/zfc-rbac)

ZfjRbac is an access control module for Zend Framework 2, based on the RBAC permission model.

Requirements
------------

[](#requirements)

- PHP 5.4 or higher
- [Rbac component](https://github.com/zf-fr/rbac): this is actually a prototype for the ZF3 Rbac component.
- [Zend Framework 2.2 or higher](http://www.github.com/zendframework/zf2)

> If you are looking for older version of ZfjRbac, please refer to the 0.2.x branch. If you are using ZfjRbac 1.0, please upgrade to 2.0.

Optional
--------

[](#optional)

- [DoctrineModule](https://github.com/doctrine/DoctrineModule): if you want to use some built-in role and permission providers.
- [ZendDeveloperTools](https://github.com/zendframework/ZendDeveloperTools): if you want to have useful stats added to the Zend Developer toolbar.

Upgrade
-------

[](#upgrade)

You can find an [upgrade guide](UPGRADE.md) to quickly upgrade your application from major versions of ZfjRbac.

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

[](#installation)

ZfjRbac only officially supports installation through Composer. For Composer documentation, please refer to [getcomposer.org](http://getcomposer.org/).

Install the module:

```
$ php composer.phar require zf-commons/zfc-rbac:~2.4
```

Enable the module by adding `ZfjRbac` key to your `application.config.php` file. Customize the module by copy-pasting the `zfc_rbac.global.php.dist` file to your `config/autoload` folder.

Documentation
-------------

[](#documentation)

The official documentation is available in the [/docs](/docs) folder.

You can also find some Doctrine entities in the [/data](/data) folder that will help you to more quickly take advantage of ZfjRbac.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 65.4% 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 ~39 days

Recently: every ~74 days

Total

30

Last Release

3751d ago

Major Versions

0.2.2 → 1.0.0-beta12013-11-29

v1.0.3 → 2.0.0-beta12014-01-13

0.2.3 → 2.2.02014-04-04

PHP version history (2 changes)0.1.0PHP &gt;=5.3.3

1.0.0-beta1PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c5ea80353eb117dbabb0def7d2a43079815acee0d55f690a6476c03e458c203?d=identicon)[joacub](/maintainers/joacub)

---

Top Contributors

[![bakura10](https://avatars.githubusercontent.com/u/1198915?v=4)](https://github.com/bakura10 "bakura10 (421 commits)")[![jmleroux](https://avatars.githubusercontent.com/u/1516770?v=4)](https://github.com/jmleroux "jmleroux (62 commits)")[![manuakasam](https://avatars.githubusercontent.com/u/1087280?v=4)](https://github.com/manuakasam "manuakasam (40 commits)")[![danizord](https://avatars.githubusercontent.com/u/1850941?v=4)](https://github.com/danizord "danizord (22 commits)")[![Orkin](https://avatars.githubusercontent.com/u/1061903?v=4)](https://github.com/Orkin "Orkin (21 commits)")[![davidwindell](https://avatars.githubusercontent.com/u/1720090?v=4)](https://github.com/davidwindell "davidwindell (16 commits)")[![joacub](https://avatars.githubusercontent.com/u/2091228?v=4)](https://github.com/joacub "joacub (14 commits)")[![esserj](https://avatars.githubusercontent.com/u/1032205?v=4)](https://github.com/esserj "esserj (5 commits)")[![powturns](https://avatars.githubusercontent.com/u/658883?v=4)](https://github.com/powturns "powturns (4 commits)")[![webdevilopers](https://avatars.githubusercontent.com/u/3479626?v=4)](https://github.com/webdevilopers "webdevilopers (4 commits)")[![jhuet](https://avatars.githubusercontent.com/u/372409?v=4)](https://github.com/jhuet "jhuet (3 commits)")[![ojhaujjwal](https://avatars.githubusercontent.com/u/4995501?v=4)](https://github.com/ojhaujjwal "ojhaujjwal (3 commits)")[![BrunoSpy](https://avatars.githubusercontent.com/u/954222?v=4)](https://github.com/BrunoSpy "BrunoSpy (3 commits)")[![nitecon](https://avatars.githubusercontent.com/u/665977?v=4)](https://github.com/nitecon "nitecon (3 commits)")[![ZeinEddin](https://avatars.githubusercontent.com/u/1671680?v=4)](https://github.com/ZeinEddin "ZeinEddin (2 commits)")[![belgattitude](https://avatars.githubusercontent.com/u/259798?v=4)](https://github.com/belgattitude "belgattitude (2 commits)")[![lasimon](https://avatars.githubusercontent.com/u/4467567?v=4)](https://github.com/lasimon "lasimon (2 commits)")[![mparulski](https://avatars.githubusercontent.com/u/9919033?v=4)](https://github.com/mparulski "mparulski (2 commits)")[![raykolbe](https://avatars.githubusercontent.com/u/800727?v=4)](https://github.com/raykolbe "raykolbe (2 commits)")[![richardjennings](https://avatars.githubusercontent.com/u/501693?v=4)](https://github.com/richardjennings "richardjennings (2 commits)")

---

Tags

permissionsrbacmodulezf2

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/joacub-zfj-rbac/health.svg)

```
[![Health](https://phpackages.com/badges/joacub-zfj-rbac/health.svg)](https://phpackages.com/packages/joacub-zfj-rbac)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k98.0M1.3k](/packages/spatie-laravel-permission)[santigarcor/laratrust

This package provides a flexible way to add Role-based Permissions to Laravel

2.3k5.6M47](/packages/santigarcor-laratrust)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k3.5M118](/packages/bezhansalleh-filament-shield)[zf-commons/zfc-user

A generic user registration and authentication module for ZF2. Supports Zend\\Db and Doctrine2.

4851.1M71](/packages/zf-commons-zfc-user)[lm-commons/lmc-rbac-mvc

Laminas Framework MVC Module that provides a layer of features of Laminas\\Permissions\\Rbac

12425.4k10](/packages/lm-commons-lmc-rbac-mvc)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6783.6k5](/packages/hasinhayder-tyro)

PHPackages © 2026

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