PHPackages                             timebug/hyperf-rocketmq - 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. timebug/hyperf-rocketmq

ActiveLibrary

timebug/hyperf-rocketmq
=======================

a rocketmq for hyperf

v1.0.5(3y ago)0132MITPHPPHP 8.0.\*

Since Jul 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ChuckJack/hyperf_rocketmq)[ Packagist](https://packagist.org/packages/timebug/hyperf-rocketmq)[ RSS](/packages/timebug-hyperf-rocketmq/feed)WikiDiscussions master Synced 1mo ago

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

timebug/hyperf-rocketmq
=======================

[](#timebughyperf-rocketmq)

引入Composer包
-----------

[](#引入composer包)

```
composer require timebug/hyperf-rocketmq

```

新建生产者
-----

[](#新建生产者)

```
#[Producer(poolName: "default", topic: "test_topic", groupId: "test_group", messageTag: "tMsgKey", properties: ["a" => 1])]
class DemoProducer extends ProducerMessage
{
    public function __construct(array $data)
    {
        // 设置消息内容
        $this->setPayload($data);
        $this->setMessageKey('tMsgKey01');
    }

}
```

新建消费者
-----

[](#新建消费者)

```
#[Consumer(name: "Consumer", poolName: "default", topic: "test_topic", groupId: "test_group", messageTag: "tMsgKey")]
class DemoConsumer extends ConsumerMessage
{
    public function consumeMessage(RocketMQMessage $message): void
    {
        var_dump($message->getMessageId());
        var_dump($this->unserialize($message->getMessageBody()));
        var_dump($message->getPublishTime());
    }
}
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Every ~0 days

Total

2

Last Release

1390d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a8184b1106ac5c1aae793d1b3a7bb2d728a6f9836061214ceee92c98484d7a9c?d=identicon)[ChuckJack](/maintainers/ChuckJack)

---

Top Contributors

[![YoimiyaMisaka](https://avatars.githubusercontent.com/u/29019999?v=4)](https://github.com/YoimiyaMisaka "YoimiyaMisaka (2 commits)")

---

Tags

phphyperfrocketMq

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/timebug-hyperf-rocketmq/health.svg)

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

###  Alternatives

[hyperf/amqp

A amqplib for hyperf.

241.2M56](/packages/hyperf-amqp)[hyperf/odin

425.9k](/packages/hyperf-odin)[hyperf/swow-skeleton

A coroutine framework that focuses on hyperspeed and flexible, specifically use for build microservices and middlewares.

514.5k](/packages/hyperf-swow-skeleton)

PHPackages © 2026

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