prolic / humus-rbac-navigation-module
This package is abandoned and no longer maintained.
No replacement package was suggested.
Integration of ZfcRbac and SpiffyNavigation for Zend Framework 2
Package info
github.com/prolic/HumusRbacNavigationModule
pkg:composer/prolic/humus-rbac-navigation-module
dev-master
2015-08-29 13:33 UTC
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.phpby addingHumusRbacNavigationModuletomodules
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.