PHPackages                             zf-commons/zfc-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. zf-commons/zfc-rbac

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

zf-commons/zfc-rbac
===================

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

v2.6.3(9y ago)181898.2k—7.6%112[24 issues](https://github.com/ZF-Commons/zfc-rbac/issues)[3 PRs](https://github.com/ZF-Commons/zfc-rbac/pulls)19MITPHPPHP ~5.6 || ~7.0

Since Feb 5Pushed 5y ago32 watchersCompare

[ Source](https://github.com/ZF-Commons/zfc-rbac)[ Packagist](https://packagist.org/packages/zf-commons/zfc-rbac)[ Docs](http://www.github.com/ZF-Commons/zfc-rbac)[ RSS](/packages/zf-commons-zfc-rbac/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (18)Versions (38)Used By (19)

ZfcRbac
=======

[](#zfcrbac)

**ZfcRbac has been deprecatad**

Continue using

[LmcRbacMvc](https://github.com/Laminas-Commons/LmcRbacMvc) (now at 3.0.0) for version 2.x of ZfcRbac

or

[LmcRbac](https://github.com/Laminas-Commons/LmcRbac) (now at 1.0.0) for version 3.x of ZfcRbac

[![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)[![Join the chat at https://gitter.im/ZFCommons/zfc-rbac](https://camo.githubusercontent.com/b8f56d95413077c8508ba2f07eb740805cf27b6e64af34a21d76e709001b3583/68747470733a2f2f6261646765732e6769747465722e696d2f5a46436f6d6d6f6e732f7a66632d726261632e737667)](https://gitter.im/ZFCommons/zfc-rbac?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)[![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)

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

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

[](#requirements)

- PHP 5.6, PHP 7.0 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 ZfcRbac, please refer to the 0.2.x branch. If you are using ZfcRbac 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 ZfcRbac.

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

[](#installation)

ZfcRbac 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 `ZfcRbac` 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 ZfcRbac.

Support
-------

[](#support)

- File issues at .
- Ask questions in the [zf-common gitter](https://gitter.im/ZFCommons/zfc-rbac) chat.

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity55

Moderate usage in the ecosystem

Community46

Growing community involvement

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 61.5% 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 ~54 days

Recently: every ~124 days

Total

35

Last Release

3003d 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

v2.6.3 → 3.0.0-alpha.12018-02-26

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

1.0.0-beta1PHP &gt;=5.4

v2.6.0PHP ~5.6 || ~7.0

3.0.0-alpha.1PHP ^7.1

### Community

Maintainers

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

![](https://avatars.githubusercontent.com/u/394428?v=4)[Sascha-Oliver Prolić](/maintainers/prolic)[@prolic](https://github.com/prolic)

![](https://www.gravatar.com/avatar/9e3c74232d02a5fedbcef4650bac1d1103be292d4a013f6f9e692befcc9bb7ca?d=identicon)[bakura10](/maintainers/bakura10)

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

---

Top Contributors

[![bakura10](https://avatars.githubusercontent.com/u/1198915?v=4)](https://github.com/bakura10 "bakura10 (424 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)")[![prolic](https://avatars.githubusercontent.com/u/394428?v=4)](https://github.com/prolic "prolic (36 commits)")[![danizord](https://avatars.githubusercontent.com/u/1850941?v=4)](https://github.com/danizord "danizord (24 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)")[![DennisDobslaf](https://avatars.githubusercontent.com/u/2852007?v=4)](https://github.com/DennisDobslaf "DennisDobslaf (7 commits)")[![svycka](https://avatars.githubusercontent.com/u/1270782?v=4)](https://github.com/svycka "svycka (6 commits)")[![esserj](https://avatars.githubusercontent.com/u/1032205?v=4)](https://github.com/esserj "esserj (5 commits)")[![webdevilopers](https://avatars.githubusercontent.com/u/3479626?v=4)](https://github.com/webdevilopers "webdevilopers (4 commits)")[![powturns](https://avatars.githubusercontent.com/u/658883?v=4)](https://github.com/powturns "powturns (4 commits)")[![divix1988](https://avatars.githubusercontent.com/u/6444400?v=4)](https://github.com/divix1988 "divix1988 (4 commits)")[![basz](https://avatars.githubusercontent.com/u/143068?v=4)](https://github.com/basz "basz (4 commits)")[![BrunoSpy](https://avatars.githubusercontent.com/u/954222?v=4)](https://github.com/BrunoSpy "BrunoSpy (3 commits)")[![ojhaujjwal](https://avatars.githubusercontent.com/u/4995501?v=4)](https://github.com/ojhaujjwal "ojhaujjwal (3 commits)")[![nitecon](https://avatars.githubusercontent.com/u/665977?v=4)](https://github.com/nitecon "nitecon (3 commits)")[![jhuet](https://avatars.githubusercontent.com/u/372409?v=4)](https://github.com/jhuet "jhuet (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)")

---

Tags

permissionsrbacmodulezf2

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/zf-commons-zfc-rbac/health.svg)

```
[![Health](https://phpackages.com/badges/zf-commons-zfc-rbac/health.svg)](https://phpackages.com/packages/zf-commons-zfc-rbac)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k89.8M1.0k](/packages/spatie-laravel-permission)[socalnick/scn-social-auth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

21974.2k3](/packages/socalnick-scn-social-auth)[lm-commons/lmc-rbac-mvc

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

12401.0k7](/packages/lm-commons-lmc-rbac-mvc)[org_heigl/hybridauth

Lightweight Authentication Module for Zend-Framework 2 using the hybridauth-library

211.9k](/packages/org-heigl-hybridauth)

PHPackages © 2026

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