PHPackages                             mikbox74/yii2-chl - 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. mikbox74/yii2-chl

ActiveYii2-extension

mikbox74/yii2-chl
=================

Yii2 extension for Chaldene Admin Template

1.1.9(7y ago)5171[9 issues](https://github.com/mikbox74/yii2-chl/issues)MITPHP

Since Mar 12Pushed 7y ago3 watchersCompare

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

READMEChangelog (10)Dependencies (9)Versions (15)Used By (0)

Yii2 extension for Chaldene Admin Template
==========================================

[](#yii2-extension-for-chaldene-admin-template)

The extension adds support for the [Chaldene Admin Template](http://chl.onokumus.com/) markup.

This extension includes easy applicable asset bundles, HTML layouts and basic widgets.

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

[](#installation)

Your best CLI-friend will help you with this:

`composer require mikbox74/yii2-chl`

Starting the party
------------------

[](#starting-the-party)

For beginning you must configure `view` component:

```
return [
    //...
    'components' => [
        'view' => [
            'class'   => \mikbox74\Chaldene\ChaldeneView::class,
            //...
        ],
    ],
    //...
];
```

The `mikbox74\Chaldene\ChaldeneView` overrides system layout path and makes some nice magic. For more magic you can use following properties:

- *layout* (string) - one of the three layout types: `topnav` (main menu on top), `sidenav`, `sidenavhf` (main menu at left). It's strongly recommended to use suitable constants from `mikbox74\Chaldene\ChaldeneLayouts`.
- *fixPage* (boolean) - makes `app heading` and `app footer` fixed while you scroll the page.
- *fixSide* (boolean) - makes `side heading`, `side footer`, `app heading` and `app footer` fixed while you scroll the page.
- *fixMain* (boolean) - makes `main heading`, `main footer`, `app heading` and `app footer` fixed while you scroll the page.
- *boxed* (boolean) - limits the width of the page.
- *showTitle* (boolean) - Show the page title inside `main heading` panel.
- *rtl* (boolean) - Right to left content direction.
- *widgets* (array) - Config array where in you can explain how some widgets must be placed inside the view.

Themization
-----------

[](#themization)

**Since 1.1.6:**

Look inside `mikbox74\Chaldene\ChaldeneThemes` to use its constants:

```
return [
    //...
    'components' => [
        'view' => [
            'class'   => \mikbox74\Chaldene\ChaldeneView::class,
            'colorTheme' => \mikbox74\Chaldene\ChaldeneThemes::PETER_RIVER,
            //...
        ],
    ],
    //...
];
```

**Before 1.1.6:**

You can set one of these by configuring the `assetManager` component. Example:

```
return [
    //...
    'components' => [
        'view' => [
            'class'   => \mikbox74\Chaldene\ChaldeneView::class,
            //...
        ],
        'assetManager' => [
            'class' => \yii\web\AssetManager::class,
            'bundles' => [
                \mikbox74\Chaldene\Assets\ChaldeneAsset::class => [
                    'theme' => \mikbox74\Chaldene\ChaldeneThemes::PETER_RIVER,
                ],
            ],
        ],
    ],
    //...
];
```

Themes do not differ much from each other but may be you will like this feature ;)

More about widgets placement
----------------------------

[](#more-about-widgets-placement)

I recommend to set up widgets in special file:

```
return [
    //...
    'components' => [
        'view' => [
            'class'   => \mikbox74\Chaldene\ChaldeneView::class,
            'widgets' => require 'widgets.php',
        ],
    ],
    //...
];
```

widgets.php:

```
return [
    'app-logo' => [
        'widget1',
        'widget2',
        'widget3',
        //...
    ],
    'mainmenu' => [
        'widget1',
        'widget2',
        'widget3',
        //...
    ],
    'app-search' => [
        //...
    ],
    //...
];
```

The first level is an associative array with the pairs 'place name' =&gt; 'widgets list in this place'.

The template has following places:

- app-logo
- mainmenu
- app-search
- app-nav
- dashhead-subtitle
- dashhead-toolbar
- before-content
- after-content
- main-footer
- app-footer
- side-heading (only `sidenav` and `sidenavhf` layouts)
- side-footer (only `sidenav` and `sidenavhf` layouts)
- mobile-search (visible on small screens after pushing search button)

Next level is the plain list of widgets. Every widget can be configured by three ways:

1. Plain text string. It will be placed right inside without any changing.
2. Configuration array with 'class' element and any properties of the specified class (Yii-way).
3. Anonimous function returns a class configuration array (like above).

In brief about widgets
----------------------

[](#in-brief-about-widgets)

- `mikbox74\Chaldene\Widgets\AlertNavitem` - created to view some important information with icon, badge and dropdown list of messages. Add it in place inside *UL* menu and be happy.
- `mikbox74\Chaldene\Widgets\Box` - views content inside nice blocks (same as TWBS panes but little mode advanced).
- `mikbox74\Chaldene\Widgets\Breadcrumbs` - crumbles everywhere on your site.
- `mikbox74\Chaldene\Widgets\Logo` - shows your (or our) logo image in two wariants: small for mobiles and larger for other screens.
- `mikbox74\Chaldene\Widgets\Message` - a twin of `\common\widgets\Alert` from the Yii2-advanced app skeleton. It appears automatically and not need to be added in any place.
- `mikbox74\Chaldene\Widgets\MetisMenu` - this is the pop king in town. Add it wherever in you want to see awesome adaptive multilevel menu.
- `mikbox74\Chaldene\Widgets\SearchForm` - simple little search form with input and knob.
- `mikbox74\Chaldene\Widgets\UserNavitem` - can view a nav item with user avatar, username and dropdown user menu. Works properly inside *UL* tag (same as `AlertNavitem`)

Much more info see in DocComments.

And... Killer feature: decoratos!
---------------------------------

[](#and-killer-feature-decoratos)

Since 1.1.0 each widget from the package has a string propery `decorator`. You can use it to specify path to any decorator file you want ([see somthing about ContentDecorator](https://www.yiiframework.com/doc/api/2.0/yii-widgets-contentdecorator) to get how it works). For example you can create file `@common/views/decorators/example.php`:

```

```

and set the path as `decorator` for any widget.

Handsome cheatsheet
-------------------

[](#handsome-cheatsheet)

### Top navigation

[](#top-navigation)

[![cheatsheet 1](docs/widgets1.png)](docs/widgets1.png)

### Side navigation

[](#side-navigation)

[![cheatsheet 2](docs/widgets2.png)](docs/widgets2.png)

### Mobile search

[](#mobile-search)

[![cheatsheet 3](docs/widgets3.png)](docs/widgets3.png)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity71

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

Recently: every ~85 days

Total

14

Last Release

2570d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1d88a092bb9edc1afd007e8baa2338ccc75c1c87d2c9432c8697479b752deec8?d=identicon)[MikUrrey](/maintainers/MikUrrey)

---

Top Contributors

[![mikbox74](https://avatars.githubusercontent.com/u/1404546?v=4)](https://github.com/mikbox74 "mikbox74 (74 commits)")

---

Tags

admin-templatebootstrap-templatechaldenecss3html-templatephpthemeyii2yii2-chaldeneyii2-extensionyii2-widgets

### Embed Badge

![Health badge](/badges/mikbox74-yii2-chl/health.svg)

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

###  Alternatives

[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)[zhuravljov/yii2-datetime-widgets

Datetime widgets for Yii2.

21118.6k3](/packages/zhuravljov-yii2-datetime-widgets)[yii2mod/yii2-bootstrap-notify

Alert widget based on Bootstrap Notify extension {@link http://bootstrap-notify.remabledesigns.com/)

1562.7k4](/packages/yii2mod-yii2-bootstrap-notify)[joni-jones/yii2-wschat

Online chat based on web sockets and ratchet php

981.3k](/packages/joni-jones-yii2-wschat)

PHPackages © 2026

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