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 2w ago

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 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

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

2531d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13942650?v=4)[Robin](/maintainers/Mrzrb)[@Mrzrb](https://github.com/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.5M30](/packages/league-geotools)[illuminate/bus

The Illuminate Bus package.

6045.5M508](/packages/illuminate-bus)[bcc/resque-bundle

BCCResqueBundle

119736.1k2](/packages/bcc-resque-bundle)[uecode/qpush-bundle

Asynchronous processing for Symfony using Push Queues

1672.5M2](/packages/uecode-qpush-bundle)[duxweb/dux-lite

The lightweight framework based on slim php

161.0k9](/packages/duxweb-dux-lite)[mayconbordin/l5-stomp-queue

Stomp Queue Driver for Laravel 5

121.1k](/packages/mayconbordin-l5-stomp-queue)

PHPackages © 2026

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