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

Abandoned → [mdmsoft/yii2-admin](/?search=mdmsoft%2Fyii2-admin)ArchivedYii2-extension[Authentication &amp; Authorization](/categories/authentication)

diecoding/yii2-rbac
===================

RBAC / Auth Manager for Yii2 Extends 'mdmsoft/yii2-admin': '~2.0'

v0.3.0(6y ago)01.3k1[1 PRs](https://github.com/diecoding-technology/yii2-rbac/pulls)BSD-3-ClausePHPPHP &gt;=7.0

Since Nov 16Pushed 5y ago2 watchersCompare

[ Source](https://github.com/diecoding-technology/yii2-rbac)[ Packagist](https://packagist.org/packages/diecoding/yii2-rbac)[ Docs](https://diecoding.com/yii2/plugins/yii2-rbac)[ RSS](/packages/diecoding-yii2-rbac/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (2)Versions (14)Used By (0)

Yii2 RBAC
=========

[](#yii2-rbac)

RBAC / Auth Manager for Yii2 Extends `'mdmsoft/yii2-admin': '~2.0'`

[![Latest Stable Version](https://camo.githubusercontent.com/1ba4b4e46ce5de0b9a965c2fbe4f832c408a2955ba3f54369d6e821d7a5f389a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6469652d636f64696e672f796969322d726261632e737667)](https://github.com/die-coding/yii2-rbac/releases)[![Total Downloads](https://camo.githubusercontent.com/68b8373fe9054717b28bb66a0e9b8f182b87c5ae419e5c20433d17a3c35302fc/68747470733a2f2f706f7365722e707567782e6f72672f646965636f64696e672f796969322d726261632f646f776e6c6f616473)](https://packagist.org/packages/diecoding/yii2-rbac)[![Monthly Downloads](https://camo.githubusercontent.com/4dd9922d2a4cfaa5370f4ef30207c6c7ff981d8450ee404fee35d79bf99c1e17/68747470733a2f2f706f7365722e707567782e6f72672f646965636f64696e672f796969322d726261632f642f6d6f6e74686c79)](https://packagist.org/packages/diecoding/yii2-rbac)[![License](https://camo.githubusercontent.com/5658ec115db7bcbfbf3960d1a17750f030682c201fcb7d2c4d17d991aafd6e80/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6469652d636f64696e672f796969322d726261632e737667)](https://github.com/die-coding/yii2-rbac/blob/master/LICENSE.md)[![Quality Score](https://camo.githubusercontent.com/fe967e9953c41a3d1475961429306f8178966c1685eec0decfc7f6debd735dfe/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6469652d636f64696e672f796969322d726261632e737667)](https://scrutinizer-ci.com/g/die-coding/yii2-rbac)[![Build Status](https://camo.githubusercontent.com/958bae2543355c9348637fed220e3f0fbbce1a52ea882bfa8be9733ac7fc1af5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f6469652d636f64696e672f796969322d726261632e737667)](https://scrutinizer-ci.com/g/die-coding/yii2-rbac/build-status/master)

Documentation
-------------

[](#documentation)

> **Disclaimer:** This package is actually only used to make it easier for me to build my personal application, but if you are interested please just try it. This package is extends from ['mdmsoft/yii2-admin': '~2.0'](https://github.com/mdmsoft/yii2-admin/), you can also use documentation from .

- [Change Log](CHANGELOG.md).
- [Installation](#installation).
- [Authorization Guide](https://www.yiiframework.com/doc/guide/2.0/en/security-authorization). Important, read this first before you continue.
- [Configuration](https://github.com/die-coding/yii2-rbac/blob/master/documentation/configuration.md)
- [Using Menu](https://github.com/die-coding/yii2-rbac/blob/master/documentation/menu.md).
- [Screenshots](https://github.com/die-coding/yii2-rbac/blob/master/documentation/screenshots).

Installation
------------

[](#installation)

### Install With Composer

[](#install-with-composer)

The preferred way to install this extension is through [composer](https://getcomposer.org/download/).

Either run

```
composer require diecoding/yii2-rbac "dev-master"

```

Or, you may add

```
"diecoding/yii2-rbac": "dev-master"

```

to the require section of your `composer.json` file and execute `composer update`.

### Install From the Archive

[](#install-from-the-archive)

Download the latest release from here [releases](https://github.com/die-coding/yii2-rbac/releases), then extract it to your project. In your application config, add the path alias for this extension.

```
return [
    ...
    'aliases' => [
        '@diecoding/rbac' => 'path/to/your/extracted',
        // for example
        // '@diecoding/rbac' => '@app/extensions/diecoding/yii2-rbac-1.0.0',
        ...
    ],
    ...
];
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.9% 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 ~12 days

Recently: every ~22 days

Total

12

Last Release

2235d ago

### Community

Maintainers

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

---

Top Contributors

[![wanforge](https://avatars.githubusercontent.com/u/16300077?v=4)](https://github.com/wanforge "wanforge (47 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

authrbacyii2extensionsimple rbac

### Embed Badge

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

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

###  Alternatives

[jinxing/yii2-admin

RBAC Auth manager for Yii2

381.0k1](/packages/jinxing-yii2-admin)[kakadu-dev/yii2-jwt-auth

Extension provide JWT auth for Yii2

105.8k](/packages/kakadu-dev-yii2-jwt-auth)[yiichina/yii2-auth

Yii2 中使用第三方登录扩展，包括：微博，QQ，微信，百度等

191.1k2](/packages/yiichina-yii2-auth)

PHPackages © 2026

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