Download the PHP package enigmatix/yii2-rbac without Composer
On this page you can find all versions of the php package enigmatix/yii2-rbac. 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 yii2-rbac
yii2-rbac
Helper Class to build your RBAC using easy configuration arrays.
Some quick examples:
Creates a single role with associated permissions. The default construction is:
A role with sub-roles:
['Support', ['Basic','SupportManager']],
A role with permissions:
['UserManager', 'permissions' => ['assumeUserIdentity','resetUserPassword']],
A role with a rule:
['Basic', 'ruleName' => 'notGuest']
Or an entry with all three:
['Support', ['Basic','SupportManager'],
'ruleName' => 'notGuest',
'permissions' => ['assumeUserIdentity','resetUserPassword']]
And then add them via the Rbac Builder:
RbacBuilder::addRules([
['notGuest' => GuestRule::className()]
]);
RbacBuilder::createRoles(['Support', ['Basic','SupportManager'],
'ruleName' => 'notGuest',
'permissions' => ['assumeUserIdentity','resetUserPassword']
]);
All versions of yii2-rbac with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
The package enigmatix/yii2-rbac contains the following files
Loading the files please wait ....