lm-commons / lmc-rbac-mvc
Laminas Framework MVC Module that provides a layer of features of Laminas\Permissions\Rbac
Installs: 278 756
Dependents: 5
Suggesters: 1
Security: 0
Stars: 11
Watchers: 4
Forks: 5
Open Issues: 8
Requires
- php: ~8.1.0 || ~8.2.0 || ~8.3.0
- laminas/laminas-config: ^3.1
- laminas/laminas-eventmanager: ^3.0
- laminas/laminas-mvc: ^3.0
- laminas/laminas-servicemanager: ^3.0
- lm-commons/lmc-rbac: ^2.0
Requires (Dev)
- laminas/laminas-authentication: ^2.2
- laminas/laminas-coding-standard: ^2.5.0
- phpspec/prophecy-phpunit: ^2.0
- phpunit/phpunit: 10.5.35
- psalm/plugin-phpunit: ^0.19.0
- vimeo/psalm: ^5.25
Suggests
- lm-commons/lmc-rbac-mvc-devtools: if you want to collect and show information about roles and guards in Laminas Developer Tools
- dev-master
- 4.x-dev
- 4.1.x-dev
- 4.0.x-dev
- 4.0.2
- 4.0.1
- 4.0.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/all-minor-patch
- dev-renovate/phpunit-phpunit-11.x
- dev-renovate/major-laminas
- dev-renovate/prism-react-renderer-2.x-lockfile
This package is auto-updated.
Last update: 2024-11-21 23:17:43 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
ZfcRbac
toLmcRbacMvc
. - The key
zfc_rbac
in autoload and module config files has been replaced by thelmc_rbac
key.
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.