yii2cmf / yii2-rbac-module
RBAC module that allows you to edit roles, permissions, and rules using the web interface.
Package info
github.com/yii2cmf/yii2-rbac-module
Type:yii2-extension
pkg:composer/yii2cmf/yii2-rbac-module
dev-master
2020-02-06 10:28 UTC
Requires
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2026-03-07 00:48:46 UTC
README
RBAC module that allows you to edit roles, permissions and rules using the web interface.
Installation
The preferred way to install this extension is through composer.
$ composer require yii2cmf/yii2-rbac-module
or add
"yii2cmf/yii2-rbac-module": "*"
to the require section of your composer.json file.
In config/web.php
'modules' => [ ... 'rbac' => [ 'class' => 'app\modules\rbac\Module', // Excluded Modules 'exclude' => ['gii', 'debug'], // Set rules path 'rules' => ['app\modules\rbac\rules', 'app\commands', '...'], ], ... ];
Apply migrations
php yii migrate/up --migrationPath=@vendor/yii2cmf/yii2-rbac-module/migrations
Module Default Page
http://your-project/rbac or http://your-project/module/rbac




