PHPackages                             mix8872/yii2-user-admin - 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. mix8872/yii2-user-admin

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

mix8872/yii2-user-admin
=======================

RBAC Auth manager for Yii2

v1.0.1(5y ago)1713[1 issues](https://github.com/mix8872/yii2-user-admin/issues)1BSD-3-ClausePHP

Since Oct 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mix8872/yii2-user-admin)[ Packagist](https://packagist.org/packages/mix8872/yii2-user-admin)[ RSS](/packages/mix8872-yii2-user-admin/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (2)Used By (1)

RBAC Manager for Yii 2
======================

[](#rbac-manager-for-yii-2)

This is a fork of [mdmsoft/yii2-admin](https://github.com/mdmsoft/yii2-admin)

- [Change Log](CHANGELOG.md).

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

[](#installation)

### Install With Composer

[](#install-with-composer)

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

Either run

```
php composer.phar require mix8872/yii2-user-admin "dev-master"

```

Or, you may add

```
"mix8872/yii2-user-admin": "dev-master"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply modify your application configuration as follows:

```
return [
    'modules' => [
        'user-admin' => [
            'class' => 'mix8872\useradmin\Module',
            ...
        ]
        ...
    ],
    ...
    'as access' => [
        'class' => 'mix8872\useradmin\components\AccessControl',
        'allowActions' => [
            'site/*',
            'admin/*',
            'some-controller/some-action',
            // The actions listed here will be allowed to everyone including guests.
            // So, 'admin/*' should not appear here in the production, of course.
            // But in the earlier stages of your development, you may probably want to
            // add a lot of actions here until you finally completed setting up rbac,
            // otherwise you may not even take a first step.
        ]
    ],
];
```

See [Yii RBAC](http://www.yiiframework.com/doc-2.0/guide-security-authorization.html#role-based-access-control-rbac) for more detail.

If you use database (class 'yii\\rbac\\DbManager') to save rbac data, execute the migration here:

```
yii migrate --migrationPath=@yii/rbac/migrations

```

If you wand add to user fields: img and display\_name, execute the migration here:

```
yii migrate --migrationPath=@vendor/mix8872/user-admin/src/migrations

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2028d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/52c5dc1f7474e82117d2503c0d9c478ead60d46790e16b935f28fae4ffc29513?d=identicon)[mix8872](/maintainers/mix8872)

---

Top Contributors

[![mix8872](https://avatars.githubusercontent.com/u/25277872?v=4)](https://github.com/mix8872 "mix8872 (14 commits)")

---

Tags

authrbacyiiadmin

### Embed Badge

![Health badge](/badges/mix8872-yii2-user-admin/health.svg)

```
[![Health](https://phpackages.com/badges/mix8872-yii2-user-admin/health.svg)](https://phpackages.com/packages/mix8872-yii2-user-admin)
```

###  Alternatives

[windhoney/yii2-rest-rbac

RBAC Auth manager for Yii2 RESTful

811.2k](/packages/windhoney-yii2-rest-rbac)[izyue/yii2-admin

RBAC Auth manager for Yii2

391.8k](/packages/izyue-yii2-admin)

PHPackages © 2026

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