PHPackages                             yadjet/yii2-rbac - 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. yadjet/yii2-rbac

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

yadjet/yii2-rbac
================

The RBAC GUI for the Yii framework

05JavaScript

Since Mar 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/hiscaler/yii2-rbac)[ Packagist](https://packagist.org/packages/yadjet/yii2-rbac)[ RSS](/packages/yadjet-yii2-rbac/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-rbac
=========

[](#yii2-rbac)

RBAC For Yii2

安装
==

[](#安装)

composer require yadjet/yii2-rbac

配置
==

[](#配置)

安装完毕后，你需要配置控制文件中的 authManager 组件属性，例如

```
'authManager' => [
    'class' => 'yii\rbac\DbManager',
    'defaultRoles' => [],
	......
],

```

\#实现访问控制 创建自己的控制器，并确保从 \\yadjet\\rbac\\controllers\\RbacController 类继承，例如：

```
namespace backend\controllers;

class Controller extends \yadjet\rbac\controllers\RbacController
{

	public function actionIndex() {
		......
	}

}

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a3f0543fc8f1bcc1a23dfc2706793b7c1e4f9cac8fab6362466b62b5774a9c9c?d=identicon)[hiscaler](/maintainers/hiscaler)

---

Top Contributors

[![hiscaler](https://avatars.githubusercontent.com/u/1013287?v=4)](https://github.com/hiscaler "hiscaler (32 commits)")

### Embed Badge

![Health badge](/badges/yadjet-yii2-rbac/health.svg)

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

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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