lm-commons/lmc-rbac

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

v1.4.0 2024-05-23 14:22 UTC

README

Build Version Total Downloads License Coverage Status Static Badge

Dynamic JSON Badge

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

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

Requirements

  • PHP 7.3 or higher

Note: PHP 7.3 and 8.0 are no longer actively tested

Optional

  • DoctrineModule: if you want to use some built-in role and permission providers.

Upgrade

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

Installation

LmcRbac only officially supports installation through Composer. For Composer documentation, please refer to getcomposer.org.

Install the module:

$ php composer.phar require lm-commons/lmc-rbac

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

Documentation

The official documentation is available here folder.

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

Support