lm-commons / lmc-rbac-mvc
Laminas Framework MVC Module that provides a layer of features of Laminas\Permissions\Rbac
Installs: 356 514
Dependents: 5
Suggesters: 1
Security: 0
Stars: 12
Watchers: 2
Forks: 6
Open Issues: 18
pkg:composer/lm-commons/lmc-rbac-mvc
Requires
- php: ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0
- laminas/laminas-eventmanager: ^3.0
- laminas/laminas-mvc: ^3.2
- laminas/laminas-servicemanager: ^3.15
- lm-commons/lmc-rbac: ^2.1
Requires (Dev)
- laminas/laminas-authentication: ^2.2
- laminas/laminas-coding-standard: ^3.0
- phpspec/prophecy-phpunit: ^2.0
- phpunit/phpunit: ^10.5.38
- psalm/plugin-phpunit: ^0.19.0
- vimeo/psalm: ^5.26
Suggests
- lm-commons/lmc-rbac-mvc-devtools: if you want to collect and show information about roles and guards in Laminas Developer Tools
- 4.2.x-dev
- 4.1.x-dev
- 4.1.1
- 4.1.0
- 4.0.x-dev
- 4.0.2
- 4.0.1
- 4.0.0
- 3.5.x-dev
- 3.5.0
- 3.4.x-dev
- 3.4.1
- v3.4.0
- v3.3.2
- v3.3.1
- v3.3.0
- v3.2.0
- v3.1.3
- v3.1.2
- v3.1.1
- v3.1.0
- v3.0.3
- v3.0.2
- v3.0.1
- 3.0.0
- v2.6.3
- v2.6.2
- v2.6.1
- v2.6.0
- v2.5.6
- v2.5.5
- v2.5.4
- v2.5.3
- v2.5.2
- v2.5.1
- v2.5.0
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.1
- 2.3.0
- 2.2.0
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.0
- 2.0.0-beta1
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- 1.0.0-beta2
- 1.0.0-beta1
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.1
- 0.1.0
- dev-renovate/lock-file-maintenance
- dev-renovate/all-minor-patch
- dev-renovate/actions-setup-node-6.x
- dev-renovate/react-dom-19.x
- dev-renovate/react-19.x
- dev-renovate/actions-checkout-5.x
- dev-renovate/node-22.x
- dev-renovate/vimeo-psalm-6.x
- dev-renovate/phpunit-phpunit-12.x
- dev-renovate/major-laminas
- dev-dependabot/npm_and_yarn/docs/http-proxy-middleware-2.0.9
- dev-dependabot/npm_and_yarn/docs/estree-util-value-to-estree-3.3.3
- dev-dependabot/npm_and_yarn/docs/image-size-1.2.1
- dev-3.5.x-merge-up-into-4.0.x_GeAfNwN0
- dev-renovate/prism-react-renderer-2.x-lockfile
- dev-master
This package is auto-updated.
Last update: 2025-10-21 11:47:32 UTC
README
Role-based access control module to provide additional features on top of Zend\Permissions\Rbac
Requirements
- PHP 8.1 or higher
- Laminas Components 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.
Upgrade
LmcRbacMvc introduces breaking changes from zfcrbac v2:
- The namespace has been changed from
ZfcRbactoLmcRbacMvc. - The key
zfc_rbacin autoload and module config files has been replaced by thelmc_rbackey.
You can find an upgrade guide to quickly upgrade your application from major versions of ZfcRbac.
Installation
LmcRbacMvc 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-mvc
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.
Documentation
The official documentation is available here.
You can also find some Doctrine entities in the /data folder that will help you to more quickly take advantage of LmcRbac.
Support
- File issues at https://github.com/LM-Commons/LmcRbacMvc/issues.
- Ask questions in the LM-Commons Slack chat.