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

ActiveLibrary

lpb/hyperf-rocketmq
===================

v1.0.0(2y ago)3111[1 PRs](https://github.com/l417325749/hyperf-rocketmq/pulls)MITPHPPHP &gt;=7.4

Since Jul 4Pushed 1y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (13)Versions (2)Used By (0)

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

[](#引入composer包)

```
composer require lpb/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);
    }

}
```

新建消费者
-----

[](#新建消费者)

```
#[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

24

—

LowBetter than 32% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

1048d ago

### Community

Maintainers

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

---

Tags

phphyperf

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[mineadmin/mineadmin

Quickly build a background management system for web applications

1.2k2.0k](/packages/mineadmin-mineadmin)[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)[hyperf/odin

425.9k](/packages/hyperf-odin)[hyperf-ext/sms

The Hyperf SMS package.

254.4k](/packages/hyperf-ext-sms)

PHPackages © 2026

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