githubjeka / yii2-gui-rbac
Yii 2 RBAC management GUI interface
Installs: 25 810
Dependents: 2
Suggesters: 0
Security: 0
Stars: 84
Watchers: 18
Forks: 38
Open Issues: 2
Requires
- php: >=5.6.0
- yiisoft/yii2: >=2.0.6
- yiisoft/yii2-bootstrap: >=2.0.5
Requires (Dev)
- phpunit/phpunit: 5.1.*
This package is auto-updated.
Last update: 2024-11-19 17:13:56 UTC
README
How to install
🐤 Follow the commands:
- Check that the component
authManager
has been configured. - Add to your composer.json
"githubjeka/yii2-gui-rbac": "1.0.2"
- Run
composer update
- If your project doesn't have to implement rbac then run
yii migrate --migrationPath=@yii/rbac/migrations/
- Add to
@app/config/main.php
the code:
// '/config/web.php' for Basic or '/backend/config/main' - Advanced Yii2 application. 'modules' => [ 'rbac' => [ 'class' => 'githubjeka\rbac\Module', 'as access' => [ // if you need to set access 'class' => 'yii\filters\AccessControl', 'rules' => [ [ 'allow' => true, 'roles' => ['@'] // all auth users ], ] ] ], ],
- go to url
/index.php?r=rbac