Download the PHP package tobento/service-acl without Composer
On this page you can find all versions of the php package tobento/service-acl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tobento/service-acl
More information about tobento/service-acl
Files in tobento/service-acl
Package service-acl
Short Description A simple role and user-level access control system.
License MIT
Homepage https://www.tobento.ch
Informations about the package service-acl
ACL Service
The ACL Service is a simple role and user-level access control system.
Table of Contents
- Getting started
- Requirements
- Highlights
- Simple Example
- Documentation
- Rules
- Default Rule
- Default Rule Custom
- Custom Rules
- Permissions
- Roles
- Rules
- Credits
Getting started
Add the latest version of the Acl service running this command.
Requirements
- PHP 8.0 or greater
Highlights
- Framework-agnostic, will work with any project
- Customize permission behaviour
- Decoupled design
Simple Example
Here is a simple example of how to use the Acl service.
Documentation
Rules
Adding and getting rules.
Default Rule
The default rule has the following permission behaviour:
Areas bahviour:
Default Rule Custom
You can easily add a custom handler for extending a specific rule behaviour.
Custom Rules
You can easily add a custom rule for a different permission strategy.
Your Rule must implement the following RuleInterface.
Lets make a custum rule for just letting user specific permissions have access ignoring acl and role permissions.
Permissions
The following methods are available on objects implementing the Permissionable Interface or the Authorizable Interface.
- Tobento\Service\Acl\Acl::class
- Tobento\Service\Acl\Role::class
Available methods for checking permissions on acl:
Checking permissions on Authorizable object:
For more information on Helper Function visit tobento/helper-function
Roles
Working with roles.
Credits
- Tobias Strub
- All Contributors
All versions of service-acl with dependencies
tobento/service-helper-function Version ^1.0
psr/container Version ^1.0 || ^2.0