prolic / humus-rbac-navigation-module
Integration of ZfcRbac and SpiffyNavigation for Zend Framework 2
Installs: 3 425
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: >=5.3.23
- spiffy/spiffy-navigation: >=1.0.0
- zendframework/zend-mvc: >=2.3.0
- zf-commons/zfc-rbac: >=2.4.0
Requires (Dev)
- phpunit/phpunit: >=4.0
- squizlabs/php_codesniffer: 1.5.*
This package is auto-updated.
Last update: 2020-03-09 18:00:42 UTC
README
Integration of ZfcRbac and SpiffyNavigation for Zend Framework 2
Dependencies
Installation
- Add
"prolic/humus-rbac-navigation-module": "dev-master"
to yourcomposer.json
- Run
php composer.phar install
- Enable the module in your
config/application.config.php
by addingHumusRbacNavigationModule
tomodules
Example-Configuration
return array(
'modules' => array(
'ZfcRbac',
'SpiffyNavigation',
'HumusRbacNavigationModule',
)
);
Usage
Create your navigation using SpiffyNavigation as usual, you can either set the "role" or the "permission" option to any route.
The navigation entries will be hidden in SpiffyNavigation automatically.