Skip to content

cornernote/yii2-dashboard

Repository files navigation

Yii2 Dashboard

Latest Version Software License Build Status HHVM Coverage Status Quality Score Total Downloads Yii2 Framework

Yii2 Dashboard is a module that allows you to create and manage dashboards using custom layouts and panels.

Features

  • Create custom layouts with regions where panels can be placed.
  • Create custom panels to display your data inside a layout region.
  • Drag-and-drop interface to rearrange panels inside a layout.

Documentation

Getting started? Try the Installation Guide. You will find further information in the Documentation.

For changes since the last version see the Changelog.

Config

<?php
$config = [
    'modules' => [
        'dashboard' => [
            'class' => 'cornernote\dashboard\Module',
            'layouts' => [
                'default' => 'cornernote\dashboard\layouts\DefaultLayout',
                'example' => 'tests\app\dashboard\layouts\ExampleLayout',
            ],
			'updateRoles' => ['dashboardAdmin'],
            'panels' => [
                'example' => [
					'class' => 'app\dashboard\panels\ExamplePanel',
					'allowRules => ['exampleRule'],	
				],
            ],
            'dashboards' => [
                'dashboard first' => [
					'viewRoles => ['firstRule'],	
				],
            ],
        ],
    ],
];

Screenshots

Dashboard View

More images are available from the Screenshots page.

Contributing

Contributions are welcome. Please refer to the contributing guidelines.

Thanks to everyone who has contributed.

Project Resources

License

BSD-3 - Please refer to the license.