PHPackages                             pastuhov/yii2-redis-ticker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. pastuhov/yii2-redis-ticker

ActiveYii2-extension[Caching](/categories/caching)

pastuhov/yii2-redis-ticker
==========================

Yii2 Redis ticker.

v0.1.0(10y ago)010GPL-2.0PHPPHP &gt;=5.3.0

Since Jan 22Pushed 10y ago1 watchersCompare

[ Source](https://github.com/pastuhov/yii2-redis-ticker)[ Packagist](https://packagist.org/packages/pastuhov/yii2-redis-ticker)[ Docs](https://github.com/pastuhov/yii2-redis-ticker)[ RSS](/packages/pastuhov-yii2-redis-ticker/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Yii2 redis ticker
=================

[](#yii2-redis-ticker)

[![Build Status](https://camo.githubusercontent.com/0fbb59a639ec552e42dcacfe8f950ad1d1a30c8358571081550bf20365fdcdcd/68747470733a2f2f7472617669732d63692e6f72672f7061737475686f762f796969322d72656469732d7469636b65722e737667)](https://travis-ci.org/pastuhov/yii2-redis-ticker)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/97935aa0169452baaa93e4be92a444702b82277c3152bb7dd881163e89ca967e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7061737475686f762f796969322d72656469732d7469636b65722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/pastuhov/yii2-redis-ticker/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/b4f52a046a677274f1bafa6ba7cce0eecbb5cfbaba15504473bddf5cb4cb9bc2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7061737475686f762f796969322d72656469732d7469636b65722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/pastuhov/yii2-redis-ticker/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/3c9bc7768acc637b730d1d5daf907efb062ca0dd78acb1b8a52b9cb83f7e91dc/68747470733a2f2f706f7365722e707567782e6f72672f7061737475686f762f796969322d72656469732d7469636b65722f646f776e6c6f616473)](https://packagist.org/packages/pastuhov/yii2-redis-ticker)

Install
-------

[](#install)

Via Composer

```
$ composer require pastuhov/yii2-redis-ticker
```

Features
--------

[](#features)

- Just tick

Usage
-----

[](#usage)

```
$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
-------

[](#testing)

```
$ composer test
```

or

```
$ phpunit
```

Debugging
---------

[](#debugging)

For debugging purposes use:

```
$ redis-cli monitor
```

or

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

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Kirill Pastukhov](https://github.com/pastuhov)
- [All Contributors](../../contributors)

License
-------

[](#license)

GNU General Public License, version 2. Please see [License File](LICENSE) for more information.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3809d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7937221?v=4)[Pastuhov Kirill](/maintainers/pastuhov)[@pastuhov](https://github.com/pastuhov)

---

Top Contributors

[![pastuhov](https://avatars.githubusercontent.com/u/7937221?v=4)](https://github.com/pastuhov "pastuhov (3 commits)")

---

Tags

redistimerdog pileticker

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pastuhov-yii2-redis-ticker/health.svg)

```
[![Health](https://phpackages.com/badges/pastuhov-yii2-redis-ticker/health.svg)](https://phpackages.com/packages/pastuhov-yii2-redis-ticker)
```

###  Alternatives

[jamm/memory

Key-value storage in memory. As a storage can be used: APC, Redis, Memcache, Shared memory. All storage objects have one interface, so you can switch them without changing the working code. Contains PHP Redis client.

13326.8k1](/packages/jamm-memory)[bazilio/yii2-async

Provides translucent api for moving large tasks out of request context

6249.6k2](/packages/bazilio-yii2-async)[pyurin/yii2-redis-ha

Basic redis-ha client

18283.8k](/packages/pyurin-yii2-redis-ha)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
