Download the PHP package yiisoft/rbac-rules-container without Composer
On this page you can find all versions of the php package yiisoft/rbac-rules-container. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package rbac-rules-container
Yii RBAC Rules Container
This package is a factory for creating Yii RBAC (Role-Based Access Control) rules. It provides rules container based on Yii Factory and uses Yii Definitions syntax. RBAC manager accepts rule as a name and parameters and is unaware of its creation by design, delegating creation to rules container keeping responsibilities separation.
Requirements
- PHP 8.1 or higher.
Installation
The package could be installed with Composer:
General usage
Direct interaction with rules container
MyContainer
is a container for resolving dependencies and must be an instance ofPsr\Container\ContainerInterface
. Yii Dependency Injection implementation also can be used.- You can optionally set definitions and disable their validation if needed.
Basically, the arguments are the same as in Yii Factory. Please refer to its docs for more details.
Rules are created only once, then cached and reused for repeated calls.
Using Yii config
Documentation
- Internals
If you need help or have a question, the Yii Forum is a good place for that. You may also check out other Yii Community Resources.
License
The Yii RBAC Rules Container is free software. It is released under the terms of the BSD License.
Please see LICENSE
for more information.
Maintained by Yii Software.
Support the project
Follow updates
All versions of rbac-rules-container with dependencies
psr/container Version ^1.0|^2.0
yiisoft/definitions Version ^1.0|^2.0|^3.0
yiisoft/factory Version ^1.0
yiisoft/rbac Version ^2.0