PHP code example of fcovasquez / yii2-countdown

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

    

fcovasquez / yii2-countdown example snippets


echo \fcovasquez\widgets\Countdown::widget([
    'datetime' => date('Y-m-d H:i:s', time() + 1000),
    'config' => ['elapse' => true, 'precision' => , 'defer' => false,],
    'format' => '%M:%S',
    'events' => [
        'finish' => 'function(){location.reload()}',
    ],
])