PHP code example of aayaresko / yii2-widget-timer

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

    

aayaresko / yii2-widget-timer example snippets


use aayaresko\timer\Timer
Timer::widget([
    'options' => [
        'container' => '.timer',
        'autoStart' => true,
    ]
])

<div class="timer"></div>

    $.fn.timer.worker.go();

$ php composer.phar