Skip to main content
Version: 3.4

Requirements and Installation

Requirements

Optional

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 to LmcRbacMvc.
  • [BC] The key zfc_rbac in autoload and module config files has been replaced by the lmc_rbac key.
  • Requires PHP 8.0 or later
  • Requires Laminas MVC components 3.x or later
  • Uses PSR-4 autoload