ayaalkaplin/yii2-rbac

This package is abandoned and no longer maintained. No replacement package was suggested.

Role Based Access Controll for yii2

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

v0.0.2 2019-03-13 00:53 UTC

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