PHPackages                             lkk/yii2-inspinia - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. lkk/yii2-inspinia

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

lkk/yii2-inspinia
=================

Inspinia template widgets

1.3(8y ago)89.8k↓50%5[1 PRs](https://github.com/lkk/yii2-inspinia/pulls)1Apache-2.0JavaScript

Since Oct 4Pushed 8y ago3 watchersCompare

[ Source](https://github.com/lkk/yii2-inspinia)[ Packagist](https://packagist.org/packages/lkk/yii2-inspinia)[ RSS](/packages/lkk-yii2-inspinia/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (1)

Inspinia Admin Theme
====================

[](#inspinia-admin-theme)

v2.7.1

这是一个商业模板,使用前请先购买版权

真心不贵，只要18美刀，程序猿半天的工资。比免费模板强大多了。

main.php增加

```
'components' => [
    'view' => [
         'theme' => [
	 'pathMap' => [
	'@app/views' => '@vendor/lkk/yii2-inspinia/views'
	],
        ],
    ],
],

```

或者 将vendor/lkk/yii2-inspinia/views下的文件，替换自己views下的文件

加载AppAsset

编辑 backend\\assets\\AppAsset.php

```
class AppAsset extends AssetBundle
{
    ...
    public $depends = [
        'lkk\inspinia\AppAsset',
    ];
}

```

views/layouts/sidebar.php的$menu，大体上这样

```
$controllerName = Yii::$app->controller->id;
$actionName = Yii::$app->controller->action->id;
$moduleName = Yii::$app->controller->module->id;

$menu = [
	[
	'url' => '/home',
		'label' => '首页',
		'icon' => 'fa fa-dashboard',
	],
	[
		'url' => '/money',
		'label' => '财务管理',
		'icon' => 'fa fa-money',
		'options' => ['class' => $controllerName == 'money' ? 'active' : ''],
	],
	[
		'url' => '#',
		'label' => '项目管理',
		'icon' => 'fa fa-cubes',
		'items' => [
		 	[
	    	    'url' => '/project/default',
	    	    'label' => '项目列表',
	    	    'options' => ['class' => $controllerName == 'default' && $moduleName == 'project' ? 'active' : ''],
			],
	    	[
	        	'url' => '/project/create',
	        	'label' => '新增项目',
	        	'options' => ['class' => $controllerName == 'create' && $moduleName == 'project' ? 'active' : ''],
	    	],
		],
		'options' => ['class' => $moduleName == 'project' ? 'active' : ''],
	],
]

```

如指定页面error使用layouts/empty，方法如下

```
public function beforeAction($action)
{
    if (parent::beforeAction($action)) {
        if ($action->id=='error')
	$this->layout ='empty';
        return true;
    } else {
        return false;
    }
}

```

inspinia Panel使用

```

```

toolbar参数

```
'toolbar'=>[
        [
	'title' => '',
	'link'  => Url::to(['/']),
	'icon'  => 'wrench',
	'items' => [
	[
	    'title' => 'Item 1',
	    'link'  => Url::to(['/']),
	    'icon'  => 'earth',
	],
	[
	    'title' => 'Item 2',
	    'link'  => Url::to(['/']),
	    'icon'  => 'pencil',
	],
	],
        ],
        [
	'title' => 'QQ',
	'link'  => Url::to(['http://qq.com']),
	'icon'  => 'qq',
        ]
    ]

```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity67

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

Total

5

Last Release

3213d ago

Major Versions

0.1 → 1.02016-12-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/35482c8e362eadf1789bfca0a0ff4f3c403c8740c3cdfff402cbde9b6c6f88f4?d=identicon)[lkk](/maintainers/lkk)

---

Top Contributors

[![lkk](https://avatars.githubusercontent.com/u/10077392?v=4)](https://github.com/lkk "lkk (11 commits)")

---

Tags

yii2assetswidgetsinspinia

### Embed Badge

![Health badge](/badges/lkk-yii2-inspinia/health.svg)

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

###  Alternatives

[asinfotrack/yii2-toolbox

Yii2-Toolbox is a collection of useful helpers, widgets etc. extending the basic functionality of Yii2

1230.5k5](/packages/asinfotrack-yii2-toolbox)[blacksmoke26/yii2cdn

A Yii Framework 2 component for using assets in different environments (Local/CDNs)

1412.0k](/packages/blacksmoke26-yii2cdn)

PHPackages © 2026

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