PHPackages                             jext/yii2-jrbac - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. jext/yii2-jrbac

ActiveYii2-extension[Authentication &amp; Authorization](/categories/authentication)

jext/yii2-jrbac
===============

JRBAC - Yii2 RBAC admin control panel and dashboard that's based on Bootstrap

1.0.1(1y ago)11822MITPHP

Since Jul 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/vsfor/yii2-jrbac)[ Packagist](https://packagist.org/packages/jext/yii2-jrbac)[ RSS](/packages/jext-yii2-jrbac/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (14)Used By (0)

yii2-jrbac
==========

[](#yii2-jrbac)

### module for yii2 rbac manage

[](#module-for-yii2-rbac-manage)

### improving... you can diy it for your own project

[](#improving-you-can-diy-it-for-your-own-project)

**Yii2 RBAC管理模块**

- 权限管理 - 添加、删除（批量）、自动初始化（根据路由地址）
- 角色管理 - 添加、删除（批量）、用户关联、权限关联、子角色关联
- 规则管理 - 添加、删除（批量）、权限关联
- 菜单管理 - 增删改查、无限分类、图标集成、权限过滤、与模版无缝集成（默认+adminLte）
- set the authManager component in your project config file

    ```
      //...
      'components' => [
          //...
          'authManager' => [
              'class' => 'jext\jrbac\src\JDbManager',
          ],
      ]
      //...

    ```
- load modules in your config file

    ```
      //...
      'modules' => [
          'jrbac' => [
              'class' => 'jext\jrbac\Module',
          ],
          //...
      ],
      //...

    ```
- to use jrbac menu component

```
//example code
$menuItems = [
    //... your own menu items set
];
$jrbacMenu = \jext\jrbac\src\JMenu::getInstance()->getMenu();

//in adminLte theme template
echo dmstr\widgets\Menu::widget(
[
    'options' => ['class' => 'sidebar-menu'],
    'items' => array_merge($menuItems, $jrbacMenu),
]

//other default views

    NavBar::begin([
        'brandLabel' => Yii::t('app', Yii::$app->name),
        'brandUrl' => Yii::$app->homeUrl,
        'options' => [
            'class' => 'navbar-default',// navbar-fixed-top
        ],
    ]);

    echo Nav::widget([
        'options' => ['class' => 'navbar-nav navbar-right'],
        'items' => array_merge($menuItems, $jrbacMenu),
    ]);

    NavBar::end();

//to use this component, make sure you have assigned the right permissions to the logined user

```

---

### any other problems ? mail to me:  :)

[](#any-other-problems--mail-to-me-jeenvsforcom-)

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~243 days

Recently: every ~676 days

Total

13

Last Release

711d ago

Major Versions

0.9.1 → 1.0.02017-11-08

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1228579?v=4)[Jeen](/maintainers/vsfor)[@vsfor](https://github.com/vsfor)

---

Top Contributors

[![vsfor](https://avatars.githubusercontent.com/u/1228579?v=4)](https://github.com/vsfor "vsfor (21 commits)")

---

Tags

rbacyii2extensionmoduleadmin

### Embed Badge

![Health badge](/badges/jext-yii2-jrbac/health.svg)

```
[![Health](https://phpackages.com/badges/jext-yii2-jrbac/health.svg)](https://phpackages.com/packages/jext-yii2-jrbac)
```

###  Alternatives

[budyaga/yii2-users

Module for manage users and their rights with the support of registration through social services and assigned to each user more than one social service.

409.1k](/packages/budyaga-yii2-users)[liujx/yii2-app-advanced

Yii2 ace-admin RBAC management background

1301.4k](/packages/liujx-yii2-app-advanced)[lowbase/yii2-user

Yii2 user module

131.5k2](/packages/lowbase-yii2-user)[jinxing/yii2-admin

RBAC Auth manager for Yii2

391.0k1](/packages/jinxing-yii2-admin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
