PHP code example of diiimonn / yii2-widget-spinner-canvas

1. Go to this page and download the library: Download diiimonn/yii2-widget-spinner-canvas 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/ */

    

diiimonn / yii2-widget-spinner-canvas example snippets


use diiimonn\widgets\SpinnerCanvas;

...

<?= SpinnerCanvas::widget([
    'options' => [
        'class' => 'spinner',
    ],
    'scriptOptions' => [
        'radius' => 3,
        'height' => 5,
        'width' => 1.6,
        'dashes' => 10,
        'opacity' => 1,
        'padding' => 3,
        'rotation' => 700,
        'color' => '#666666',
    ]
]) 

$ php composer.phar