Download the PHP package doganoo/simple-rbac without Composer
On this page you can find all versions of the php package doganoo/simple-rbac. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download doganoo/simple-rbac
More information about doganoo/simple-rbac
Files in doganoo/simple-rbac
Package simple-rbac
Short Description Simple leightweight PHP Role Based Access Control library
License MIT
Informations about the package simple-rbac
simple-rbac
Simple leightweight PHP Role Based Access Control library
How does this library work?
I have tried to keep things simple. The main idea was to let the user implement an interface which provides the user and his permissions. The permissions are assigned to roles and roles are assigned to users.
The library provides a simple way to verify permissions without re-inventing the wheel.
The library is also available on Packagist: https://packagist.org/packages/doganoo/simple-rbac
missing something? create a pull request!
Changelog
- 1.3.0 supporting owners:
Installation
You can install the package via composer:
Usage
There are two main interfaces you have to implement:
The first interface represents the user to whom permissions are granted or denied. The second interface holds all necessary information, such as the user, a single permission and default permissions.
IDataProvider can be used to connect to a data source (database, files, HTTP, etc.) in order to set up.
The class uses the interfaces above to determine whether an action is permitted or not.
and interfaces represent a single permission and a user's role.
Contributions
Feel free to send a pull request to add more algorithms and data structures.
Maintainer/Creator
Doğan Uçar (@doganoo)
License
MIT
All versions of simple-rbac with dependencies
doganoo/php-algorithms Version ^2.0
laminas/laminas-diactoros Version ^2.18
mezzio/mezzio Version ^3.11
laminas/laminas-servicemanager Version ^3.16