PHPackages                             yii-diandi/yii2-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. yii-diandi/yii2-admin

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

yii-diandi/yii2-admin
=====================

权限管理

3.9.5(9mo ago)1644Apache-2.0PHP

Since Jul 10Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/yii-diandi/yii2-admin)[ Packagist](https://packagist.org/packages/yii-diandi/yii2-admin)[ RSS](/packages/yii-diandi-yii2-admin/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (221)Used By (4)

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 yii-diandi/yii2-admin "2.x-dev"

```

Or, you may add

```

"yii-diandi/yii2-admin": "2.x-dev"

```

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

### Install From the Archive

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

```php
return [
    ...
    'aliases' => [
        '@diandi/admin' => 'path/to/your/extracted',
        // for example: '@diandi/admin' => '@app/extensions/diandi/yii2-admin-2.0.0',
        ...
    ]
];

```

[**More...**](docs/guide/configuration.md)

[screenshots](https://goo.gl/r8RizT)

###  Health Score

43

—

FairBetter than 90% of packages

Maintenance58

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 99.6% 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 ~9 days

Total

220

Last Release

271d ago

Major Versions

1.9 → 2.02020-12-16

2.98 → 3.0.02022-06-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/46cef84bc40d75ea2a86c1746f139764841f3d133d34d951bf78ea39faffaa20?d=identicon)[wangchunsheng](/maintainers/wangchunsheng)

---

Top Contributors

[![yii-diandi](https://avatars.githubusercontent.com/u/34767187?v=4)](https://github.com/yii-diandi "yii-diandi (224 commits)")[![liang15946](https://avatars.githubusercontent.com/u/19303053?v=4)](https://github.com/liang15946 "liang15946 (1 commits)")

---

Tags

yii2extension

### Embed Badge

![Health badge](/badges/yii-diandi-yii2-admin/health.svg)

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

###  Alternatives

[vxm/yii2-mfa

Multi-factor authentication for yii2

1442.0k](/packages/vxm-yii2-mfa)[kakadu-dev/yii2-jwt-auth

Extension provide JWT auth for Yii2

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

PHPackages © 2026

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