Download the PHP package mohit-singh/zf2auth-acl without Composer
On this page you can find all versions of the php package mohit-singh/zf2auth-acl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mohit-singh/zf2auth-acl
More information about mohit-singh/zf2auth-acl
Files in mohit-singh/zf2auth-acl
Package zf2auth-acl
Short Description This is ACL module plug with zfcuser module this is heighly configurable abd provide different services at controller, view and module level.
License
Homepage https://github.com/Mohit-Singh/ZF2AuthAcl
Informations about the package zf2auth-acl
ZF2-Auth-ACL
Branch: zfcuser_acl
This this the ZF2 ACL module forked from arvind2110/ZF2-Auth-ACL and Plugged with zfcuser module. it will provide role base access and switching between roles , provides custom permission denied template , plug ins to access role at controller , view and module level. All the role, resource and permission are stored in databases.
How to Use it
using composer add
Enable the module in application.config.php
then copy and rename the following,
Add the depended table from
ADD role for user in table e.g.
ADD resources, resources are your controller name through which you invoke your controller, for me it's "Application\Controller\Index" e.g.
ADD Permissions , permission are the action, you have to associated all action with there controller resource e.g.
ADD role permission , you have to decided which role have which permission e.g.
ADD user role , you have to decide which user have which role , this can be done manually or using some custom script.
NOTE:- please check the aclAuth.local.php con-fig for the default role, it Should be one of the role whatever you insert in the database.
after all these configuration is done you are ready to use ACL module
Services
Remove ACL from a URL and make it global, access to all , add link here
Remove ACL from a URL and make it global before login , add link here
Custom template for permission denied, add new template path here
Role base services at controller
at view level
at module level
It Also provide cache mechanism to store role, resource and permission in cache. you can configure the caching here
you can also access file system cache in your project like this
you are using file system cache so you have to give permission to the cache folder