PHPackages                             codezeen/yii2-adminlte - 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. [Templating &amp; Views](/categories/templating)
4. /
5. codezeen/yii2-adminlte

ActiveYii2-extension[Templating &amp; Views](/categories/templating)

codezeen/yii2-adminlte
======================

Admin-LTE-2 Extension for Yii2

1.2.0(10y ago)24.7k22BSD-3-ClausePHP

Since May 10Pushed 10y ago3 watchersCompare

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

READMEChangelog (3)Dependencies (5)Versions (5)Used By (2)

Yii2 Admin-LTE 2
================

[](#yii2-admin-lte-2)

Admin-LTE-2 Extension for Yii2

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist codezeen/yii2-adminlte "*"

```

or add

```
"codezeen/yii2-adminlte": "*"

```

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

Register Asset
--------------

[](#register-asset)

### Register Asset directly

[](#register-asset-directly)

Register asset directly to view file.

```
\codezeen\yii2\adminlte\AdminLteAsset::register($this);
```

### Register Asset via Asset Bundle

[](#register-asset-via-asset-bundle)

```
class AppAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web';
    public $css = [
        'css/site.css',
    ];
    public $js = [
        'js/site.js',
    ];
    public $depends = [
        'codezeen\yii2\adminlte\AdminLteAsset',
    ];
}
```

Render Sidebar Left
-------------------

[](#render-sidebar-left)

```
use codezeen\yii2\adminlte\widgets\Menu;
```

```
$adminSiteMenu[0] = ['label' => 'MAIN NAVIGATION', 'options' => ['class' => 'header'], 'template' => '{label}'];
$adminSiteMenu[1] = [
    'label' => 'Dashboard',
    'icon'  => 'fa fa-dashboard',
    'items' => [['icon' => 'fa fa-circle-o', 'label' => 'Home', 'url' => ['/site/index']]],
];
$adminSiteMenu[2] = [
    'label'    => 'BADGE AND MULTILEVEL',
    'options'  => ['class' => 'header'],
    'template' => '{label}',
];
$adminSiteMenu[3] = [
    'label'   => 'Multilevel',
    'icon'    => 'fa fa-share',
    'options' => ['class' => 'treeview'],
    'items'   => [
        ['icon' => 'fa fa-circle-o', 'label' => 'Level One', 'url' => '#'],
        [
            'icon'  => 'fa fa-circle-o',
            'label' => 'Level One',
            'url'   => '#',
            'items' => [
                ['icon' => 'fa fa-circle-o', 'label' => 'Badge', 'url' => '#', 'badge' => '2'],
                [
                    'icon'         => 'fa fa-circle-o',
                    'label'        => 'Badge red',
                    'url'          => '#',
                    'badge'        => '2',
                   'badgeBgClass' => 'bg-red',
                ],
                [
                    'icon'         => 'fa fa-circle-o',
                    'label'        => 'Badge options',
                    'url'          => '#',
                    'badge'        => '2',
                    'badgeOptions' => ['class' => 'label pull-right bg-yellow'],
                ],
            ],
        ],
        ['icon' => 'fa fa-circle-o', 'label' => 'Level One', 'url' => '#'],
    ],
];
ksort($adminSiteMenu);
echo Menu::widget([items' => $adminSiteMenu]);
```

Using Theme
-----------

[](#using-theme)

Edit your config/main.php with the following:

```
'components'    => [
    // Other components
    'view'      => [
        'theme'     => [
            'pathMap'   => [
                '@app/views' => '@vendor/codezeen/yii2-adminlte/theme'
            ],
        ],
    ],
    // Other components
]
```

Change Skin and Layout
----------------------

[](#change-skin-and-layout)

### Edit config/params.php

[](#edit-configparamsphp)

The default skin configured on params.php. You can override the skin on the controller.

```
return [
    // Other params
    'bodyClass' => 'skin-blue sidebar-mini',
    // Other params
];
```

### In Controller Action

[](#in-controller-action)

```
 public function actionSignup()
{
    $this->layout = 'blank';
    Yii::$app->params['bodyClass'] = 'login-page';
}
```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity66

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

Total

4

Last Release

3827d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/793846?v=4)[Agiel Kurniawan Saputra](/maintainers/13nightevil)[@13nightevil](https://github.com/13nightevil)

---

Top Contributors

[![13nightevil](https://avatars.githubusercontent.com/u/793846?v=4)](https://github.com/13nightevil "13nightevil (5 commits)")

---

Tags

templateyii2extensionAdminLTEadmin

### Embed Badge

![Health badge](/badges/codezeen-yii2-adminlte/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[dmstr/yii2-adminlte-asset

AdminLTE backend theme asset bundle for Yii 2.0 Framework

1.1k1.9M67](/packages/dmstr-yii2-adminlte-asset)[yiister/yii2-adminlte

yii2-adminlte is a package for yii framework 2 that consists a very popular backend template AdminLTE (based on bootstrap 3).

2940.5k](/packages/yiister-yii2-adminlte)

PHPackages © 2026

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