joacub / zfj-rbac
Zend Framework 3 Module that provides a layer of features of Zend\Permissions\Rbac
Requires
- php: >=5.4
- zendframework/zend-mvc: ~2.2
- zendframework/zend-servicemanager: ~2.2
- zfr/rbac: ~1.2
Requires (Dev)
- doctrine/common: ~2.4
- doctrine/doctrine-module: ~0.8
- doctrine/doctrine-orm-module: ~0.8
- phpunit/phpunit: ~3.7
- satooshi/php-coveralls: ~0.6
- squizlabs/php_codesniffer: 1.4.*
- zendframework/zend-developer-tools: dev-master
- zendframework/zendframework: ~2.2
Suggests
- doctrine/doctrine-module: if you want to use Doctrine role provider
- zendframework/zend-developer-tools: if you want to show information about the roles
This package is not auto-updated.
Last update: 2024-10-26 20:53:30 UTC
README
ZfjRbac is an access control module for Zend Framework 2, based on the RBAC permission model.
Requirements
- PHP 5.4 or higher
- Rbac component: this is actually a prototype for the ZF3 Rbac component.
- Zend Framework 2.2 or higher
If you are looking for older version of ZfjRbac, please refer to the 0.2.x branch. If you are using ZfjRbac 1.0, please upgrade to 2.0.
Optional
- DoctrineModule: if you want to use some built-in role and permission providers.
- ZendDeveloperTools: if you want to have useful stats added to the Zend Developer toolbar.
Upgrade
You can find an upgrade guide to quickly upgrade your application from major versions of ZfjRbac.
Installation
ZfjRbac only officially supports installation through Composer. For Composer documentation, please refer to getcomposer.org.
Install the module:
$ php composer.phar require zf-commons/zfc-rbac:~2.4
Enable the module by adding ZfjRbac
key to your application.config.php
file. Customize the module by copy-pasting
the zfc_rbac.global.php.dist
file to your config/autoload
folder.
Documentation
The official documentation is available in the /docs folder.
You can also find some Doctrine entities in the /data folder that will help you to more quickly take advantage of ZfjRbac.