ayaalkaplin / yii2-rbac
This package is abandoned and no longer maintained.
No replacement package was suggested.
Role Based Access Controll for yii2
Package info
github.com/uraankhayayaal/yii2-rbac
Type:yii2-extension
pkg:composer/ayaalkaplin/yii2-rbac
v0.0.2
2019-03-13 00:53 UTC
Requires
- ayaalkaplin/yii2-materializecomponents: *
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2022-06-21 21:22:14 UTC
README
Role Based Access Controll for yii2
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist ayaalkaplin/yii2-rbac "*"
or add
"ayaalkaplin/yii2-rbac": "*"
to the require section of your composer.json file.
Models use yii2 DbManager class and required to run migration:
php yii migrate --migrationPath=@yii/rbac/migrations
Usage
Once the extension is installed, simply use it in your code by adding url on your navigation bar:
Url::toRoute('/rbac/permission/index'); Url::toRoute('/rbac/role/index'); Url::toRoute('/rbac/user/index');
This controllers are allowed for admin role