Download the PHP package spalax/zf2-simple-acl without Composer
On this page you can find all versions of the php package spalax/zf2-simple-acl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download spalax/zf2-simple-acl
More information about spalax/zf2-simple-acl
Files in spalax/zf2-simple-acl
Package zf2-simple-acl
Short Description Simple acl module. Provide possibilities to restrict ROUTES. Provide smart redirection according on path/module where user requested restricted resource. It is can be used for restricting few modules with on ACL library.
License MIT
Informations about the package zf2-simple-acl
ZF2 Simple Acl
Simple acl module.
Restrict ROUTES
Only one thing you need to start is to define routes which you want to restrict and the strategy which you would like to use for other not defined routes. Strategy might be 'permissive' or 'strict'. If value 'permissive' it will mean "allow all from all" so then you will have to restrict all resources which you want to be restricted. If value 'strict' it is will mean "deny all from all" so then you will have to allow every resource which you want to be available
Smart redirection
Provide smart redirection according on path/module where user requested restricted resource. It is can be used for restricting few modules with on ACL library.
It is very usefull if you have authorization on your frontend and backend modules, and you would like to redirect user who requested backend resource to the backend/user/login route and users who requested frontend restricted resource to the frontend/user/login.
Recognizers
It is very simple ability to authorize user by some token. Now supports authorization only thru token defined in COOKIE. I've added this feature only because from time to time i need user role which can acces to the special resources but without real authorization thru login form. In my example it was a cron script.
you should specify recognizer:
and role :
All versions of zf2-simple-acl with dependencies
zendframework/zendframework Version >=2.0.0
doctrine/doctrine-module Version >=0.7.2
doctrine/doctrine-orm-module Version >=0.7.0
zf-commons/zfc-user Version >=0.1.2