PHPackages                             rrmontuan/yii2-materialadmin-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. rrmontuan/yii2-materialadmin-asset

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

rrmontuan/yii2-materialadmin-asset
==================================

Assets for using Material Admin Theme in Yii2 Framework

v1.0.2(7y ago)44.3k3BSD-3-ClausePHP

Since Apr 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/rrmontuan/yii2-materialadmin-asset)[ Packagist](https://packagist.org/packages/rrmontuan/yii2-materialadmin-asset)[ RSS](/packages/rrmontuan-yii2-materialadmin-asset/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (4)Used By (0)

yii2-materialadmin-asset
========================

[](#yii2-materialadmin-asset)

Assets for using Material Admin Theme in Yii2 Framework

[![Latest Stable Version](https://camo.githubusercontent.com/38915a01d69ce45727014628e21c0fabf39515f16be89c0edd365d4b055827bc/68747470733a2f2f706f7365722e707567782e6f72672f72726d6f6e7475616e2f796969322d6d6174657269616c61646d696e2d61737365742f762f737461626c652e737667)](https://packagist.org/packages/rrmontuan/yii2-materialadmin-asset)[![Total Downloads](https://camo.githubusercontent.com/ce6d36950c57232dfc910c55db32b4f20a8016af2a1d64ea4482182672328820/68747470733a2f2f706f7365722e707567782e6f72672f72726d6f6e7475616e2f796969322d6d6174657269616c61646d696e2d61737365742f646f776e6c6f6164732e737667)](https://packagist.org/packages/rrmontuan/yii2-materialadmin-asset)[![License](https://camo.githubusercontent.com/716251f1fbba18cd3a7cc5dcbb4e06f0ab12ceae30bf984fbce142643d971628/68747470733a2f2f706f7365722e707567782e6f72672f72726d6f6e7475616e2f796969322d6d6174657269616c61646d696e2d61737365742f6c6963656e73652e737667)](https://packagist.org/packages/rrmontuan/yii2-materialadmin-asset)

*Backend UI for Yii2 Framework, based on [Material Admin](http://wrapbootstrap.com/preview/WB011H985)*The Material Admin Template isn't free and must be purchased before using.

[!["Yii2 AdminLTE Presentation"](https://camo.githubusercontent.com/a50b5369471c6db8e0527acceef4f051a34d1407ccbb7b742a1f78be4461d9b4/687474703a2f2f627972757368616e2e636f6d2f70726f6a656374732f6d6174657269616c2d61646d696e2f64656d6f2f322e302e332f696d672f6a71756572792d6c696768742e706e67)](https://camo.githubusercontent.com/a50b5369471c6db8e0527acceef4f051a34d1407ccbb7b742a1f78be4461d9b4/687474703a2f2f627972757368616e2e636f6d2f70726f6a656374732f6d6174657269616c2d61646d696e2f64656d6f2f322e302e332f696d672f6a71756572792d6c696768742e706e67)

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 Material Admin 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 the Material Admin Asset run:

```
composer require rrmontuan/yii2-materialadmin-asset "^1.0"

```

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 [Advanced 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/rrmontuan/yii2-materialadmin-asset/example-views/yiisoft/yii2-app'
             ],
         ],
    ],
],
```

The Material Admin Asset uses the sourcePath **@templates/materialadmin** as default. However,if you want (or need) you can change the sourcePath reconfiguring as showed below:

```
'components' => [
	'assetManager' => [
		'bundles' => [
			'rrmontuan\web\MaterialAdminAsset' => [
    			'sourcePath' => '@app\myfolder'
			],
		],
	],
],
```

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/rrmontuan/yii2-materialadmin-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.

### Material Admin Plugins

[](#material-admin-plugins)

Assets for Material Admin Plugins are not included in our `MaterialAdminAsset` but you can find all the files in the folder vendors inside the Material Admin Template folder . So if you want to use any of them we recommend to create a custom bundle where you list the plugin files you need:

```
use yii\web\AssetBundle;
class MaterialAdminPluginAsset extends AssetBundle
{
    public $sourcePath = '@app/templates/materialadmin';
    public $js = [
        // more plugin Js here
    ];
    public $css = [
        // more plugin CSS here
    ];
    public $depends = [
        'rrmontuan\web\MaterialAdminAsset',
    ];
}
```

As this asset depends on our `AdminLteAsset` it's the only asset you have to register, for example in your `main.php` layout file.

### Left sidebar menu - Widget Menu

[](#left-sidebar-menu---widget-menu)

If you need to add more itens to the menu you can do this way:

```
'items'=>[
	[
		'label' => 'Dashboards Slideshow',
		'icon' => 'now-widgets',
		'url' => ['/site/about'],
		'visible' => true
	],
	[
		'label' => 'Tables',
		'icon' => 'view-list',
		'url' => ['/site'],
		'items' => [
			['label' => 'Normal Tables', 'url' => ['/site/contact'],],
			['label' => 'Data Tables', 'url' => ['/site/index'],],
		],
	],
]
```

By default to icons will be added prefix of [Material Design Icons](https://material.io/icons/)

### Template for Gii CRUD generator

[](#template-for-gii-crud-generator)

Tell Gii about our template. The setting is made in the config file:

```
if (YII_ENV_DEV) {
    $config['modules']['gii'] = [
        'class' => 'yii\gii\Module',
        'allowedIPs' => ['127.0.0.1', '::1', '192.168.0.*', '192.168.178.20'],
        'generators' => [ //here
            'crud' => [
                'class' => 'yii\gii\generators\crud\Generator',
                'templates' => [
                    'materialadmin' => '@vendor/rrmontuan/yii2-materialadmin-asset/gii/templates/crud/simple',
                ]
            ]
        ],
    ];
}
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

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

Total

3

Last Release

2913d ago

### Community

Maintainers

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

---

Top Contributors

[![rrmontuan](https://avatars.githubusercontent.com/u/6073761?v=4)](https://github.com/rrmontuan "rrmontuan (3 commits)")

---

Tags

cssyii2extensionthemebackendassetadminmaterialadmin

### Embed Badge

![Health badge](/badges/rrmontuan-yii2-materialadmin-asset/health.svg)

```
[![Health](https://phpackages.com/badges/rrmontuan-yii2-materialadmin-asset/health.svg)](https://phpackages.com/packages/rrmontuan-yii2-materialadmin-asset)
```

###  Alternatives

[dmstr/yii2-adminlte-asset

AdminLTE backend theme asset bundle for Yii 2.0 Framework

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

Free admin template for backend

277278.3k5](/packages/yiister-yii2-gentelella)

PHPackages © 2026

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