PHPackages                             wdmg/yii2-admin - 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. wdmg/yii2-admin

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

wdmg/yii2-admin
===============

Administrative dashboard for Butterfly.CMS

1.4.6(2y ago)36152[12 PRs](https://github.com/wdmg/yii2-admin/pulls)1MITCSS

Since Jun 1Pushed 2y ago3 watchersCompare

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

READMEChangelog (10)Dependencies (7)Versions (62)Used By (1)

[![Yii2](https://camo.githubusercontent.com/3f29058a9886ae3e9efc09df82d551051f8ea6c8da1176d9e8ca8a64be6f9b40/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72657175697265642d596969325f76322e302e34302d626c75652e737667)](https://packagist.org/packages/yiisoft/yii2)[![Downloads](https://camo.githubusercontent.com/b94a554e86b800d4f44275314192f35f623fedce39128cd8101e81712c2d5111/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f77646d672f796969322d61646d696e2e737667)](https://packagist.org/packages/wdmg/yii2-admin)[![Packagist Version](https://camo.githubusercontent.com/a1af5279b33d6571c4e722c2e5d9dc653d892f6396afc589b014f2bfaaaf7926/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f77646d672f796969322d61646d696e2e737667)](https://packagist.org/packages/wdmg/yii2-admin)[![Progress](https://camo.githubusercontent.com/d2c102b075c16f8a841e697b04c43bc93c8d092c5795ad8b3090d7fa993c258a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f67726573732d72656164795f746f5f7573652d677265656e2e737667)](https://camo.githubusercontent.com/d2c102b075c16f8a841e697b04c43bc93c8d092c5795ad8b3090d7fa993c258a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f67726573732d72656164795f746f5f7573652d677265656e2e737667)[![GitHub license](https://camo.githubusercontent.com/d0a59677b455b4e5125ed5bd7c928f96c1887e09e5ca6bd2a25d3136ea8b3db5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f77646d672f796969322d61646d696e2e737667)](https://github.com/wdmg/yii2-admin/blob/master/LICENSE)

[![Administrative panel for Butterfly.CMS](./docs/images/yii2-admin.png)](./docs/images/yii2-admin.png)

Yii2 Admin Module
=================

[](#yii2-admin-module)

Administrative panel for [Butterfly.CMS](https://github.com/wdmg/butterfly.cms).

This module is an integral part of the [Butterfly.СMS](https://butterflycms.com/) content management system, but can also be used as an standalone extension.

Copyrights (c) 2019-2023 [W.D.M.Group, Ukraine](https://wdmg.com.ua/)

Requirements
============

[](#requirements)

- PHP 5.6 or higher
- Yii2 v.2.0.40 and newest
- [Yii2 Base](https://github.com/wdmg/yii2-base) module (required)
- [Yii2 Users](https://github.com/wdmg/yii2-users) module (required)

Installation
============

[](#installation)

To install the module, run the following command in the console:

`$ composer require "wdmg/yii2-admin"`

After configure db connection, run the following command in the console:

`$ php yii admin/init`

And select the operation you want to perform:

1. Apply all modules migrations
2. Revert all modules migrations

Migrations
==========

[](#migrations)

In any case, you can execute the migration and create the initial data, run the following command in the console:

`$ php yii migrate --migrationPath=@vendor/wdmg/yii2-admin/migrations`

Configure
=========

[](#configure)

To add a module to the project, add the following data in your configuration file:

```
'modules' => [
    ...
    'admin' => [
        'class' => 'wdmg\admin\Module',
        'routePrefix' => 'admin',
        'checkForUpdates' => true, // boolean, the flag if updates check turn on
        'cacheExpire' => 3600, // integer, the time to expire cache
        'multiSignIn' => false, // not allow by default
        'sessionTimeout' => 900, // 15 min.
        'customLocales' => [ // expanding the list of language locales for searching translations
            'uk-UA' => 'Українська',
        ],
        'customSupportModules' => [ // expanding the list of modules available for installation and download
            'wdmg/yii2-example',
        ],
        'customSidebarMenu' => [ // extending the sidebar menu list
            [
                'label' => 'Example',
                'icon' => 'fa fa-fw fa-bars',
                'url' => ['/admin/example/default'],
                'order' => 10,
            ]
        ],
        'customCreateMenu' => [ // expanding the creation menu list
            'wdmg/yii2-example' => [
                'label' => 'Add new example',
                'url' => ['/admin/example/default/create']
            ]
        ],
        'useSphinxSearch' => true, // boolean, the flag for configuration Sphinx Search
        'sphinxSearchConf' => [ // configuration of Sphinx Search daemon
            'dsn' => "mysql",
            'host' => "127.0.0.1",
            'port' => "9306",
            'username' => "",
            'password' => "",
        ]
    ],
    ...
],

```

Routing
=======

[](#routing)

Link to route (without prettyurl)Link to route (prettyurl enabled)DescriptionMain dashboardAuth to dashboardRestore access passwordUse the `Module::dashboardNavItems()` method of the module to generate a navigation items list for NavBar, like this:

```

```

Status and version \[ready to use\]
===================================

[](#status-and-version-ready-to-use)

- v.1.4.6 - Fix sidebar, terminal link
- v.1.4.5 - Count fixed in sidebar menu
- v.1.4.4 - Add task and tickets counters

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 98.3% 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 ~4 days

Total

49

Last Release

1038d ago

Major Versions

0.0.1 → 1.0.32019-06-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/9806ee0c149c1e5f7a634cbb9528b400d3bff22ce7d67bcbac89cb0b1a9147c2?d=identicon)[alex-wdmg](/maintainers/alex-wdmg)

---

Top Contributors

[![alex-wdmg](https://avatars.githubusercontent.com/u/1635637?v=4)](https://github.com/alex-wdmg "alex-wdmg (174 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")

---

Tags

yii2dashboardwdmgyii2-admin

### Embed Badge

![Health badge](/badges/wdmg-yii2-admin/health.svg)

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

###  Alternatives

[cornernote/yii2-dashboard

Dashboard manager for Yii2

344.3k](/packages/cornernote-yii2-dashboard)[deyraka/yii2-material-dashboard

Material Dashboard Theme for Yii 2.0

121.9k](/packages/deyraka-yii2-material-dashboard)

PHPackages © 2026

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