Wrapper of FlipClock for Yii2.
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist spevv/yii2-flipclock "dev-master"
or add
"spevv/yii2-flipclock": "dev-master"
to the require section of your composer.json
file.
Once the extension is installed, simply use it in your code by :
use spevv\flipclock\FlipClock;
<?= FlipClock::widget([
'selector' => '#clock', // ID for the future DIV
'time' => 60, // Seconds
'varName' => 'clock', // Name of variable for control FlipClock
'options' => array(
// options of FlipClock
),
]);
?>
Demo
This is widget it wrapper of FlipClock
This widget is extended by yii-flipclock