Download the PHP package webiik/privileges without Composer
On this page you can find all versions of the php package webiik/privileges. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download webiik/privileges
More information about webiik/privileges
Files in webiik/privileges
Download webiik/privileges
More information about webiik/privileges
Files in webiik/privileges
Vendor webiik
Package privileges
Short Description The Privileges class manages user authorization.
License MIT
Homepage https://www.webiik.com
Package privileges
Short Description The Privileges class manages user authorization.
License MIT
Homepage https://www.webiik.com
Please rate this library. Is it a good library?
Informations about the package privileges
Privileges
The Privileges class manages user authorization.
Installation
Example
Adding Roles and Resources
addRole
addRole() adds user role.
addResource
addResource() adds resource and supported resource privileges. Never set privilege 'all', resource will be not added.
Allowing Access to Resources
allow
allow() allows role access to the resource with given privileges. If role, resource or one of privileges doesn't exist, rule will be not added. If you want to grant all privileges, set privileges to ['all'].
Checking Access to Resources
isAllowed
isAllowed() checks if user with role can do privilege on resource.
Resources
All versions of privileges with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2
The package webiik/privileges contains the following files
Loading the files please wait ....