Download the PHP package jstewmc/authorize-group without Composer
On this page you can find all versions of the php package jstewmc/authorize-group. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package authorize-group
authorize-group
Authorize a group to perform an action on a resource.
Terminology
This library uses the following terminology:
- A user is a person.
- A resource is a thing, typically a model name. By convention, resources are plural and lower-case (e.g.,
'users'
). - An action is something done to a resource, typically a CRUD operation. By convention, actions are singular, present-tense, and lower-case (e.g.,
'create'
). - A permission is the right to perform an action on a resource (e.g.,
'create'
+'users'
). - A role is a named set of permissions. By convention, roles are singular and lower-cased (e.g.,
'administrator'
) - A group is a set of users with a unique name. By convention, groups are plural and lower-case (e.g.,
'administrators'
).
Methodology
This library's methodology is rather simple:
- A user is assigned to a group.
- A group is assigned one or more roles.
- A role is granted one or more permissions.
- A permission allows an action on a resource.
While users are assigned one or more groups in the database, a group is assigned a role and a role is assigned permissions in a configuration array.
Example
Finally (haha):
That's about it!
License
Author
Jack Clayton
Version
1.0.0, August 16, 2016
- Major release
- Fix
composer.json
- Cleanup a few comments
0.1.0, August 3, 2016
- Initial release
All versions of authorize-group with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.0
The package jstewmc/authorize-group contains the following files
Loading the files please wait ....