PHPackages                             jinxinauzn/yii2-adminh - 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. jinxinauzn/yii2-adminh

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

jinxinauzn/yii2-adminh
======================

RBAC Auth manager for Yii2, Can be directly to development

1.0.7(7y ago)011BSD-3-ClausePHPPHP &gt;=5.4.0

Since Dec 19Pushed 7y agoCompare

[ Source](https://github.com/JinXinAuzn/yii2adminh)[ Packagist](https://packagist.org/packages/jinxinauzn/yii2-adminh)[ RSS](/packages/jinxinauzn-yii2-adminh/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (8)Dependencies (2)Versions (9)Used By (0)

yii2-adminh
===========

[](#yii2-adminh)

Can be directly to development

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

[](#installation)

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

Either run

```
composer require --prefer-dist jinxinauzn/yii2-adminh "*"

```

or add

```
"jinxinauzn/yii2-adminh": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by : notice Due to the with conflict So only jQuery\_2\*

```
return [
    ...
    'aliases' => [
        '@jx/adminh' => 'path/to/your/extracted',
        // for example: '@jx/adminh' => '@backend/runtime/tmp-extensions/yii2-adminh',
        ...
    ]
];
```

In the main
-----------

[](#in-the-main)

```
return [
    'id' => 'app-backend',
    'basePath' => dirname(__DIR__),
    'controllerNamespace' => 'backend\controllers',
	'language' => 'zh-CN',
	'defaultRoute' => '/adminh/main/index',
	'homeUrl' => ['/'],
	'layout' => '@jx/adminh/views/layouts/main.php',
    'bootstrap' => ['log'],
    'modules' => [
	    'adminh' => [
		    'class' => 'jx\adminh\Module',
		    'layout' => 'main',
	    ],
    ],
    'components' => [
        'request' => [
            'csrfParam' => '_csrf-backend',
        ],
        'user' => [
	        'identityClass' => 'jx\adminh\models\Master',
	        'enableAutoLogin' => true,
	        'loginUrl' => ['/adminh/master/login'],
	        'identityCookie' => ['name' => '_identity-backend', 'httpOnly' => true],
        ],
        'session' => [
            // this is the name of the session cookie used for login on the backend
            'name' => 'advanced-backend',
        ],
        'log' => [
            'traceLevel' => YII_DEBUG ? 3 : 0,
            'targets' => [
                [
                    'class' => 'yii\log\FileTarget',
                    'levels' => ['error', 'warning'],
                ],
            ],
        ],
	    'i18n' => [
		    'translations' => [
			    '*' => [
				    'class' => 'yii\i18n\PhpMessageSource',
				    'basePath' => '@jx/adminh/messages',
			    ],
		    ],
	    ],
        'errorHandler' => [
            'errorAction' => 'site/error',
        ],
	    'authManager' => [
		    'class' => 'yii\rbac\DbManager', // use 'yii\rbac\DbManager'
	    ],
	    'assetManager' => [
		    'assetMap' => [
			    'jquery.js' => '@web/js/jquery.js', // jquery v3.2.1 和 jQuery UI 1.11.4 版本冲突 @https://stackoverflow.com/questions/37914869/jquery-ui-error-f-getclientrects-is-not-a-function
			    'jquery.min.js' => '@web/js/jquery.min.js',
		    ]
	    ],
	    'urlManager' => [
		    //用于表明urlManager是否启用URL美化功能，在Yii1.1中称为path格式URL，
		    // Yii2.0中改称美化。
		    // 默认不启用。但实际使用中，特别是产品环境，一般都会启用。
		    "enablePrettyUrl" => true,
		    // 是否启用严格解析，如启用严格解析，要求当前请求应至少匹配1个路由规则，
		    // 否则认为是无效路由。
		    // 这个选项仅在 enablePrettyUrl 启用后才有效。
		    "enableStrictParsing" => false,
		    // 是否在URL中显示入口脚本。是对美化功能的进一步补充。
		    "showScriptName" => false,
		    // 指定续接在URL后面的一个后缀，如 .html 之类的。仅在 enablePrettyUrl 启用时有效。
		    "suffix" => "",
		    'rules' => [
			    "/" => "/",
			    "//" => "//",
			    "//" => "/",
			    "//" => "/",
			    "///" => "//",
			    "///" => "//",
		    ],
	    ],
    ],

/*	'aliases' => [
		'@jx/adminh' => '@backend/runtime/tmp-extensions/yii2-adminh',
	],*/

	'as access' => [
		'class' => 'jx\adminh\components\AccessControl',
		'allowActions' => [
			'adminh/master/captcha',
			'adminh/master/login',
			'adminh/master/logout',
//			    '*'
		]
	],
    'params' => $params,
	'on beforeRequest' => function ($event) {
		\yii\base\Event::on(\yii\db\BaseActiveRecord::className(), \yii\db\BaseActiveRecord::EVENT_AFTER_UPDATE, ['jx\adminh\components\AdminLog', 'afterUpdate']);
		\yii\base\Event::on(\yii\db\BaseActiveRecord::className(), \yii\db\BaseActiveRecord::EVENT_AFTER_INSERT, ['jx\adminh\components\AdminLog', 'afterInsert']);
		\yii\base\Event::on(\yii\db\BaseActiveRecord::className(), \yii\db\BaseActiveRecord::EVENT_AFTER_DELETE, ['jx\adminh\components\AdminLog', 'afterDelete']);
	},
];
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

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 ~6 days

Total

8

Last Release

2659d ago

### Community

Maintainers

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

---

Top Contributors

[![JinXinAuzn](https://avatars.githubusercontent.com/u/27763722?v=4)](https://github.com/JinXinAuzn "JinXinAuzn (9 commits)")

---

Tags

authrbacyii2admin

### Embed Badge

![Health badge](/badges/jinxinauzn-yii2-adminh/health.svg)

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

###  Alternatives

[liujx/yii2-app-advanced

Yii2 ace-admin RBAC management background

1301.4k](/packages/liujx-yii2-app-advanced)[jinxing/yii2-admin

RBAC Auth manager for Yii2

381.0k1](/packages/jinxing-yii2-admin)[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)
