YII2 PHP Dashboard Panel: Controller and a widget to display dashboard panel

Recommend this page to a friend!
  Info   Documentation   View files (4)   Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 129 All time: 9,066 This week: 241
Version License PHP version Categories
yii2-panel 1.0.0Freeware7PHP 5, Libraries, Content management
Description Author

This package provides a controller and widget to use with the YII2 framework to display a dashboard panel.

It provides a base class that can render panel widgets using a configuration file that defines a class that generates the contents of the widget.

The package also provides a base controller class that can define the dashboard panel behaviors configuration.

Innovation Award
PHP Programming Innovation award winner
January 2019
Dashboards are useful to present in many sites in order to display many types of useful information to the site users in a single place.

This package simplifies the creation of dashboard by providing base components that can be extended to create dashboard panels with less effort to define the information that they will display and how it will be displayed.

Manuel Lemos
Picture of Uldis Nelsons
Name: Uldis Nelsons <contact>
Classes: 8 packages by
Country: Latvia Latvia
Age: 51
All time rank: 25637 in Latvia Latvia
Week rank: 15 1 in Latvia Latvia
Innovation award
Innovation award
Nominee: 5x

Winner: 2x


yii2 panel controller

Total Downloads

Simply dashboard solution. Each dashboard panel define in controller identicaly as Yii page: * in behaviors can control access - panel display only for users, who has access * create action. Can use parameters also * create view folder in same folder, where all other controller views

Installation by composer

    "require": {
       "unyii2/yii2-panel": "dev-master"


$ composer require unyii2/yii2-panel "dev-master"


echo \unyii2\yii2panel\PanelWidget::widget([
    'name' => 'exportSettings',
    'params' => [
        'docId' => 777

Module config

        'invoices' => [
            'class' => 'd3modules\d3invoices\Module',
            'panels' => [
                'exportSettings' =>
                        'route' => 'd3accexport/invoice-panel/document-settings',
                        'params' => [
                            'docId' => 13

Panel controller with access control and view rendering

Standard view path: d3modules/d3accexport/views/invoice-panel/setting_grid.php


namespace d3modules\d3accexport\controllers;

use unyii2\yii2panel\Controller;
use yii\filters\AccessControl;

class InvoicePanelController extends Controller

     * @inheritdoc
    public function behaviors()
        return [
            'access' => [
                'class' => AccessControl::className(),
                'rules' => [
                        'allow' => true,
                        'actions' => [
                        'roles' => [

    public function actionDocumentSettings()
        return $this->render('setting_grid',[]);


File Role Description
src (2 files)
composer.json Data Auxiliary data
README.md Doc. Documentation

  Files  /  src  
File Role Description
   Controller.php Class Class source
   PanelWidget.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,066
This week:241

For more information send a message to info at phpclasses dot org.