Administrative panel for Butterfly.CMS

Installs: 43

Dependents: 1

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 1

Open Issues: 0



1.1.18 2020-01-19 22:48 UTC


Yii2 Github all releases Progress GitHub license GitHub release

Yii2 Admin Module

Administrative panel for Butterfly.CMS


  • PHP 5.6 or higher
  • Yii2 v.2.0.20 and newest
  • Yii2 Base module (required)
  • Yii2 Users module (required)


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


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


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


Use the Module::dashboardNavItems() method of the module to generate a navigation items list for NavBar, like this:

    echo Nav::widget([
    'options' => ['class' => 'navbar-nav navbar-right'],
        'label' => 'Modules',
        'items' => [

Status and version [ready to use]

  • v.1.1.18 - Added support for RSS, Yandex.Turbo and Google AMP modules
  • v.1.1.17 - Added shadow in main navbar, load admin assets only for dashboard
  • v.1.1.16 - Antialiasing and show/hide main navbar/sidebar menu by click