PHP code example of geoffry304 / yii2-widget-timer
1. Go to this page and download the library: Download geoffry304/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/ */
geoffry304 / yii2-widget-timer example snippets
use geoffry304\timer\Timer
Timer::widget([
'options' => [
'container' => '.timer',
'autoStart' => true,
]
])
<div class="timer"></div>
$.fn.timer.worker.go();
$ php composer.phar