PHPackages                             gudezi/yii2-adminlte-asset - 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. [Admin Panels](/categories/admin)
4. /
5. gudezi/yii2-adminlte-asset

ActiveYii2-extension[Admin Panels](/categories/admin)

gudezi/yii2-adminlte-asset
==========================

AdminLTE backend theme asset bundle for Yii 2.0 Framework

1.0.1(9y ago)132BSD-3-ClausePHP

Since Oct 20Pushed 9y ago1 watchersCompare

[ Source](https://github.com/gudezi/yii2-adminlte-asset)[ Packagist](https://packagist.org/packages/gudezi/yii2-adminlte-asset)[ RSS](/packages/gudezi-yii2-adminlte-asset/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

AdminLTE Asset Bundle
=====================

[](#adminlte-asset-bundle)

*Backend UI for Yii2 Framework, based on [AdminLTE](https://github.com/gudezi/AdminLTE)*

[!["Yii2 AdminLTE Presentation"](https://cloud.githubusercontent.com/assets/874234/7603896/753228ee-f943-11e4-9d42-2a31b41eb42d.jpg)](https://cloud.githubusercontent.com/assets/874234/7603896/753228ee-f943-11e4-9d42-2a31b41eb42d.jpg)

This package contains an [Asset Bundle for Yii 2.0 Framework](http://www.yiiframework.com/doc-2.0/guide-structure-assets.html)which registers the CSS files for the AdminLTE user-interface.

The CSS files are installed via Yii's recommended usage of the `fxp/composer-asset-plugin` v1.1.1 or later.

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

[](#installation)

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

To install AdminLTE v2 run:

```
php composer.phar require gudezi/yii2-adminlte-asset "*"

```

Quick Start
-----------

[](#quick-start)

Once the extension is installed, you can have a **preview** by reconfiguring the path mappings of the view component:

For Yii 2 [Application Template](https://github.com/yiisoft/yii2-app-advanced) or [Basic Application Template](https://github.com/yiisoft/yii2-app-basic)

```
'components' => [
    'view' => [
         'theme' => [
             'pathMap' => [
                '@app/views' => '@vendor/gudezi/yii2-adminlte-asset/example-views/yiisoft/yii2-app'
             ],
         ],
    ],
],
```

For [Phundament 4](https://github.com/phundament/app)

```
'components' => [
    'view' => [
        'theme' => [
            'pathMap' => [
                '@app/views' => '@vendor/gudezi/yii2-adminlte-asset/example-views/phundament/app'
            ],
        ],
    ],
],
```

This asset bundle provides sample files for layout and view (see folder `examples/`), they are **not meant to be customized directly in the `vendor/` folder**.

Therefore it is recommended to **copy the views into your application** and adjust them to your needs.

Customization
-------------

[](#customization)

- Copy files from `vendor/gudezi/yii2-adminlte-asset/example-views/yiisoft/yii2-app` (or other theme) to `@app/views`.
- Remove the custom `view` configuration from your application by deleting the path mappings, if you have made them before.
- Edit your views adhering to html markup `vendor/gudezi/adminlte/pages`

### Skins

[](#skins)

By default the extension uses blue skin for AdminLTE. You can change it in config file.

```
'components' => [
    'assetManager' => [
        'bundles' => [
            'gudezi\web\AdminLteAsset' => [
                'skin' => 'skin-black',
            ],
        ],
    ],
],
```

And then just replace class of body `skin-blue`. You can use `AdminLteHelper::skinClass()` if you don't want to alter every view file when you change skin color.

```
