maks757 / yii2-flipclock

Demo http://flipclockjs.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yii2-flipclock

Wrapper of FlipClock for Yii2.

Installation

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.

Usage

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
    ),
]);
?>

Useful URLs

Demo
This is widget it wrapper of FlipClock
This widget is extended by yii-flipclock

About

Demo http://flipclockjs.com/


Languages

Language:JavaScript 82.5%Language:CSS 14.5%Language:PHP 3.0%