PHPackages                             tumi/workerman-thrift-resque - 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. tumi/workerman-thrift-resque

ActiveProject

tumi/workerman-thrift-resque
============================

Thrift RPC and Resque based on workerman.

991PHP

Since Nov 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/vtumi/workerman-thrift-resque)[ Packagist](https://packagist.org/packages/tumi/workerman-thrift-resque)[ RSS](/packages/tumi-workerman-thrift-resque/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

workerman-thrift-resque
=======================

[](#workerman-thrift-resque)

配置运行环境
------

[](#配置运行环境)

[配置教程](http://www.workerman.net/install)

安装Redis
-------

[](#安装redis)

[安装教程](http://redis.cn/download.html)

安装使用Thrift
----------

[](#安装使用thrift)

[在线文档](http://thrift.apache.org/docs/)

创建项目
----

[](#创建项目)

Composer

```
composer create-project --prefer-dist tumi/workerman-thrift-resque:dev-master
```

定义作业处理类
-------

[](#定义作业处理类)

普通作业

```
namespace App\Resque\Job;

class Demo
{
    public function perform()
    {
        \Workerman\Worker::log($this->args['str']);
    }
}
```

启动停止
----

[](#启动停止)

启动

```
php start.php start -d
```

重启

```
php start.php restart
```

平滑重启

```
php start.php reload
```

查看状态

```
php start.php status
```

停止

```
php start.php stop
```

管理队列（PHP）
---------

[](#管理队列php)

添加作业

```
Resque::setBackend('127.0.0.1:6379');

$args = ['str' => 'This is a test!'];
$id = Resque::enqueue('default', 'Demo', $args);
```

删除作业

```
Resque::setBackend('127.0.0.1:6379');

Resque::dequeue('default', ['Demo']);

Resque::dequeue('default', ['Demo' => $id]);

Resque::dequeue('default', ['Demo' => ['str' => 'This is a test!']]);

Resque::dequeue('default', ['Demo1', 'Demo2']);
```

查询状态

```
Resque::setBackend('127.0.0.1:6379');
// Resque::enqueue('default', 'Demo', $args, true); 添加作业时

$id = '';
$status = new Resque_Job_Status($id);
$status->get();
```

通过Thrift RPC（参考client.php）

###  Health Score

22

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a296107bee949f4a2a64c5ce5df6df1d57564521031c1692531d59682ec5e4e?d=identicon)[tumi](/maintainers/tumi)

---

Top Contributors

[![itumi](https://avatars.githubusercontent.com/u/47381201?v=4)](https://github.com/itumi "itumi (5 commits)")[![vtumi](https://avatars.githubusercontent.com/u/8733719?v=4)](https://github.com/vtumi "vtumi (2 commits)")

### Embed Badge

![Health badge](/badges/tumi-workerman-thrift-resque/health.svg)

```
[![Health](https://phpackages.com/badges/tumi-workerman-thrift-resque/health.svg)](https://phpackages.com/packages/tumi-workerman-thrift-resque)
```

PHPackages © 2026

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