2017 © Pedro Peláez
 

yii2-extension yii2-model-stat

Flexible Statistic data module for Yii 2

image

dungphanxuan/yii2-model-stat

Flexible Statistic data module for Yii 2

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

, (*1)

Yii 2 Model Statistic


Requirements

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require  dungphanxuan/yii2-model-stat=dev-master

or add, (*4)

"dungphanxuan/yii2-model-stat": "@dev"

to the require section of your composer.json., (*5)

Configure

NOTE: Make sure that you don't have chart component configuration in your config files., (*6)

Add following lines to your main configuration file:, (*7)

'modules' => [
    'chart' => [
        'class' => 'dungphanxuan\chart\Module',
    ],
],

Statistic data

Build Stat Url, (*8)

 <?php echo \yii\helpers\Html::a('Chart',
                     [
                         '/chart/stat',
                         'type' => 'Article',
                         'nm' => 'common\models',
                         'id' => null,
                         'field' => 'created_at',
                         'time_type' => 1
                     ], ['class' => 'btn btn-info'])
                 ?>

Screenshot, (*9)

Demo Chart, (*10)

Todo

  • Init Package
  • Convert to Widget

The Versions

31/08 2017

dev-master

9999999-dev

Flexible Statistic data module for Yii 2

  Sources   Download

MIT

The Requires

 

yii2 statistic dungphanxuan yii2-chart