maks757/yii2-flipclock

Wrapper of FlipClock for Yii2.

Installs: 9

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 3

Language:JavaScript

Type:yii2-extension

0.0.002 2017-02-16 15:30 UTC

This package is not auto-updated.

Last update: 2024-11-23 20:37:07 UTC


README

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