PHPackages                             plumber/plumber - 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. plumber/plumber

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

plumber/plumber
===============

A library for consumer queuse data use workerman

019PHP

Since Jan 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/nicolaslh/plumber)[ Packagist](https://packagist.org/packages/plumber/plumber)[ RSS](/packages/plumber-plumber/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

plumber
=======

[](#plumber)

使用workerman消费队列数据

Installation
------------

[](#installation)

You can add this library as a local, per-project dependency to your project using Composer:

```
composer require plumber/plumber
```

Use
---

[](#use)

```
$queuename = "queuename";
$callback = "test::test"; //消费sqs数据会会交由该方法处理
$config = []; //配置信息
$plumber = new plumber($queuename, $callback, $config);
$plumber->run();
```

config配置信息说明

- `provider` - 队列产品, 如SQS, RabbitMQ
- `count` - workerman所起的进程数量
- `rabbitmq` - rabbitmq credentials 集合
    - `host` - 链接地址
    - `port` - 端口
    - `login` - 用户名
    - `password` - 密码
    - `vhost` - vhost地址默认为"`/`"
- `key` - aws account id
- `secret` - aws account secret
- `region` - region

callback函数返回数据格式

```
["msg" => "success"]
```

注意: **只要当msg为`successs`时, 程序才会从队列中移除已经处理的消息**

run
---

[](#run)

```
Usage: php yourfile  [mode]
Commands:
start           Start worker in DEBUG mode.
                Use mode -d to start in DAEMON mode.
stop            Stop worker.
                Use mode -g to stop gracefully.
restart         Restart workers.
                Use mode -d to start in DAEMON mode.
                Use mode -g to stop gracefully.
reload          Reload codes.
                Use mode -g to reload gracefully.
status          Get worker status.
                Use mode -d to show live status.
connections     Get worker connections.
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 86.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/e9f1c80d9f92548f1e73663f12fa40d045bb8610558efcd0367aa8b7054882da?d=identicon)[nicolaslh](/maintainers/nicolaslh)

---

Top Contributors

[![kumu-nicolas](https://avatars.githubusercontent.com/u/90187850?v=4)](https://github.com/kumu-nicolas "kumu-nicolas (19 commits)")[![nicolaslh](https://avatars.githubusercontent.com/u/19262633?v=4)](https://github.com/nicolaslh "nicolaslh (3 commits)")

### Embed Badge

![Health badge](/badges/plumber-plumber/health.svg)

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

###  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)[enqueue/enqueue

Message Queue Library

19820.0M56](/packages/enqueue-enqueue)[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)

PHPackages © 2026

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