Requirements and Installation
Requirements
- PHP 8.0 or higher
- lm-commons/rbac component v1: this is actually a prototype for the ZF3 Rbac component.
- Laminas Components 2.x | 3.x or higher
Optional
- DoctrineModule: if you want to use some built-in role and permission providers.
- Laminas\DeveloperTools: if you want to have useful stats added to the Laminas Developer toolbar.
Installation
LmcRbacMvc only officially supports installation through Composer. For Composer documentation, please refer to getcomposer.org.
Install the module:
$ composer require lm-commons/lmc-rbac-mvc:^3.0
Enable the module by adding LmcRbacMvc
key to your application.config.php
or modules.config.php
file. Customize the module by copy-pasting
the lmc_rbac.global.php.dist
file to your config/autoload
folder.
Upgrade
LmcRbacMvc introduces breaking changes from zfcrbac v2:
- [BC] The namespace has been changed from
ZfcRbac
toLmcRbacMvc
. - [BC] The key
zfc_rbac
in autoload and module config files has been replaced by thelmc_rbac
key. - Requires PHP 8.0 or later
- Requires Laminas MVC components 3.x or later
- Uses PSR-4 autoload