An RBAC extension for yii2
The preferred way to install this extension is through composer.
Either run
composer atans/yii2-rbac "*"
or add
"atans/yii2-rbac": "*"
to the require section of your composer.json
file.
Update database schema
$ php yii migrate/up --migrationPath=@yii/rbac/migrations
// config/main.php
'modules' => [
'rbac' => 'atans\rbac\Module',
],