2017 © Pedro Peláez
 

yii2-extension yii2-redis-ticker

Yii2 Redis ticker.

image

pastuhov/yii2-redis-ticker

Yii2 Redis ticker.

  • Friday, January 22, 2016
  • by pastuhov
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Yii2 redis ticker

Build Status Scrutinizer Code Quality Code Coverage Total Downloads, (*1)

Install

Via Composer, (*2)

``` bash $ composer require pastuhov/yii2-redis-ticker, (*3)


## Features * Just tick ## Usage ```php $ticker = \Yii::createObject([ 'class' => \pastuhov\yii2redisticker\RedisTicker::className(), 'redis' => $redisConnection ]); $tickerName = 'tak'; if ($ticker->tick($tickerName, 15)) { $value++; } // value = 1 if ($ticker->tick($tickerName, 15)) { $value++; } // value = 1 sleep(20); if ($ticker->tick($tickerName, 15)) { $value++; } // value = 3

Testing

$ composer test

or, (*4)

$ phpunit

Debugging

For debugging purposes use:, (*5)

$ redis-cli monitor

or, (*6)

$ tail -f tests/runtime/logs/app.log -n 1000

Security

If you discover any security related issues, please email kirill@pastukhov.su instead of using the issue tracker., (*7)

Credits

License

GNU General Public License, version 2. Please see License File for more information., (*8)

The Versions

22/01 2016

dev-master

9999999-dev https://github.com/pastuhov/yii2-redis-ticker

Yii2 Redis ticker.

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

redis timer ticker dog pile

22/01 2016

v0.1.0

0.1.0.0 https://github.com/pastuhov/yii2-redis-ticker

Yii2 Redis ticker.

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

redis timer ticker dog pile