PHP code example of yii2mod / yii2-pie

1. Go to this page and download the library: Download yii2mod/yii2-pie library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

yii2mod / yii2-pie example snippets


 echo Pie::widget([
    'id' => 'pie-id',
    'title' => 'Pie Title',
    'options' => [
        ...    
    ],
    'content' => [
        [
            'value' => 10,
            'color' => 'none',
            'label' => 'Label 1'
        ],
        [
            'value' => 30,
            'color' => '#fff',
            'label' => 'Label 2'
        ],
    ]
]); 

php composer.phar