PHPackages                             zhangrb/time-even - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. zhangrb/time-even

ActiveLibrary[Queues &amp; Workers](/categories/queues)

zhangrb/time-even
=================

a package that help in event and delayed event with redis, and a tool with cron schedule.

1.10(6y ago)213mitPHP

Since Jul 26Pushed 6y agoCompare

[ Source](https://github.com/Mrzrb/timeEven)[ Packagist](https://packagist.org/packages/zhangrb/time-even)[ RSS](/packages/zhangrb-time-even/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (3)Used By (0)

timeEven
========

[](#timeeven)

timeeven是一个基于redis的队列事件包，可以支持队列事件，延时队列事件， 在php-resque (一个ruby的高人气的队列包resque改编而来)的基础上构建的，可以很方便的融入yaf中，为yaf提供延时队列事件功能。

Features
========

[](#features)

事件队列
----

[](#事件队列)

timeeven用一种很方便的方式提供了事件队列，可以很容易的融入框架。

延时事件队列
------

[](#延时事件队列)

timeeven在事件队列的基础上，通过php-resque-schedule提供了延时队列的功能。

Installation
============

[](#installation)

```
composer require zhangrb/time-even

```

Usage
=====

[](#usage)

队列配置
----

[](#队列配置)

```
$config = [
    'host' => 'localhost',
	'port' => '6379',
];
$app = new TimeEven(null, $config);
```

普通队列
----

[](#普通队列)

可以通过集成TimeEvenJob,并且更改type为self::SYNC即可设置为普通队列

```
$job = (new TimeEvenJob())->withPayload(['test' => 123]);
```

延时队列
----

[](#延时队列)

可以通过集成TimeEvenJob,并且更改type为self::ASYNC即可设置为普通队列,并通过delay来设置需要延时的时间

分派Job
-----

[](#分派job)

```
$app->dispatch($job);
```

启动工作进程
------

[](#启动工作进程)

```
$app->work('test-job', 3);
$app->schedule();

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~0 days

Total

2

Last Release

2481d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9bf67a12f302f0f9e7fdb4153799831c2dccb6309bbe70dc7bac3897254bde76?d=identicon)[Mrzrb](/maintainers/Mrzrb)

---

Top Contributors

[![Mrzrb](https://avatars.githubusercontent.com/u/13942650?v=4)](https://github.com/Mrzrb "Mrzrb (1 commits)")

### Embed Badge

![Health badge](/badges/zhangrb-time-even/health.svg)

```
[![Health](https://phpackages.com/badges/zhangrb-time-even/health.svg)](https://phpackages.com/packages/zhangrb-time-even)
```

###  Alternatives

[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.3M26](/packages/league-geotools)[amphp/parser

A generator parser to make streaming parsers simple.

14952.8M16](/packages/amphp-parser)[amphp/serialization

Serialization tools for IPC and data storage in PHP.

13451.1M18](/packages/amphp-serialization)[deliciousbrains/wp-background-processing

WP Background Processing can be used to fire off non-blocking asynchronous requests or as a background processing tool, allowing you to queue tasks.

1.1k409.8k6](/packages/deliciousbrains-wp-background-processing)[react/async

Async utilities and fibers for ReactPHP

2238.8M171](/packages/react-async)[amphp/pipeline

Asynchronous iterators and operators.

7432.7M34](/packages/amphp-pipeline)

PHPackages © 2026

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