yii2cmf / yii2-rbac-module
RBAC module that allows you to edit roles, permissions, and rules using the web interface.
Installs: 66
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2024-06-06 20:54:24 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