This package is abandoned and no longer maintained. The author suggests using the lm-commons/lmc-rbac-mvc package instead.

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

v3.0.2 2020-10-07 00:36 UTC


Important: This respository is abandoned.

The library was moved to LM-Commons/LmcRbacMvc


Version Total Downloads License Master Branch Build Status Gitter Coverage Status Scrutinizer Code Quality

Role-based access control module to provide additional features on top of Zend\Permissions\Rbac

Based on ZF-Commons/zfc-rbac v2.6.x. If you are looking for the Laminas version of zfc-rbac v3, please use Laminas-Commons/LmcRbac.

Important Notes:

This version has breaking changes with respect to ZfcRbac v2. See the Upgrade section for details.




LmcRbac introduces breaking changes from zfcrbac v2:

  • The namespace has been changed from ZfcRbac to LmcRbacMvc.
  • The key zfc-rbac in autoload and module config files has been replaced by the lmc-rbac key.

You can find an upgrade guide to quickly upgrade your application from major versions of ZfcRbac.


LmcRbacMvc only officially supports installation through Composer. For Composer documentation, please refer to

Install the module:

$ php composer.phar require laminas-commons/lmc-rbac-mvc:^3.0

This will install a Laminas MVC equivalent of zfc-rbac 2.6.3.

Enable the module by adding LmcRbacMvc key to your application.config.php or modules.config.php file. Customize the module by copy-pasting the file to your config/autoload folder.


The official documentation is available in the /docs folder.

You can also find some Doctrine entities in the /data folder that will help you to more quickly take advantage of LmcRbac.