https://github.com/githubjeka/gui-rbac-yii2
GUI for RBAC Yii2 Auth manager
https://github.com/githubjeka/gui-rbac-yii2
rbac yii2
Last synced: 10 months ago
JSON representation
GUI for RBAC Yii2 Auth manager
- Host: GitHub
- URL: https://github.com/githubjeka/gui-rbac-yii2
- Owner: githubjeka
- Created: 2014-12-20T13:42:29.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2019-01-29T11:26:44.000Z (almost 7 years ago)
- Last Synced: 2025-04-09T22:16:49.233Z (10 months ago)
- Topics: rbac, yii2
- Language: PHP
- Homepage: https://basic-rbac-githubjeka.c9.io/basic/web/index.php?r=rbac
- Size: 124 KB
- Stars: 83
- Watchers: 17
- Forks: 38
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://packagist.org/packages/githubjeka/yii2-gui-rbac)
[](https://basic-rbac-githubjeka.c9.io/basic/web/index.php?r=rbac)
[](https://github.com/yiisoft/yii2/issues/42 )
[](https://travis-ci.org/githubjeka/gui-rbac-yii2)

## How to install
:baby_chick: 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:
```php
// '/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`