PHPackages                             pangku/php-mq-publish - 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. pangku/php-mq-publish

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

pangku/php-mq-publish
=====================

rocketmq Publish Order Message

03PHP

Since Feb 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/liucaihs/php-mq-publish)[ Packagist](https://packagist.org/packages/pangku/php-mq-publish)[ RSS](/packages/pangku-php-mq-publish/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

预发配置和正式配置待定

2.发布顺序消息

文档:[https://help.aliyun.com/document\_detail/141783.html?spm=a2c4g.11186623.6.639.1dbf7b5bpCsgbd](https://help.aliyun.com/document_detail/141783.html?spm=a2c4g.11186623.6.639.1dbf7b5bpCsgbd)

3.封装sdk要求

参考lixiaohong/tyrex

发布结构: $pkOrderProducer = new PkPublish($config);

$rocketmqPublishMessage = new RqPublishMessage(xx,xxx,....);

rocketmqPublishMessage-&gt;setLogHandler(xxxx);

$topicMessage = $pkOrderProducer-&gt;publishMessage($rocketmqPublishMessage);

支持业务系统设置日志处理

了解一下monolog/monolog

sdk库的name pangku/php-mq-publish

composer require monolog/monolog

```
use PangKu\RocketMQ\PkPublish;
use PangKu\RocketMQ\Message\RqPublishOrderMessage;
use Monolog\Logger;
use Monolog\Handler\StreamHandler;

$config = [
    "account_endpoint" => "http://xxxxx.aliyuncs.com",
    "access_id" => "xxXXWw",
    "access_key" => "xx9DQy",
    "instance_id" => "xxxBXgBYndb",
    "topic" => "local-partition-test",
    "tag" => "business-test",
];

// create a log channel
$log = new Logger('name');
$log->pushHandler(new StreamHandler('D:/tmp/RocketMQ.log', Logger::WARNING));

$pkOrderProducer = new PkPublish($config);
$pkOrderProducer->setLogHandler($log, true);
$rocketmqPublishMessage = new RqPublishOrderMessage("xxxxxxxyyyyyyyyy", "xxxxxx", $config["tag"], ["a" => 12]);
$topicMessage = $pkOrderProducer->publishMessage($rocketmqPublishMessage);

```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3752296cbf0a18dbf4323c61019f4b91e84022461a606c38302475950c77a727?d=identicon)[liucaihs](/maintainers/liucaihs)

---

Top Contributors

[![liucaihs](https://avatars.githubusercontent.com/u/11729400?v=4)](https://github.com/liucaihs "liucaihs (8 commits)")

### Embed Badge

![Health badge](/badges/pangku-php-mq-publish/health.svg)

```
[![Health](https://phpackages.com/badges/pangku-php-mq-publish/health.svg)](https://phpackages.com/packages/pangku-php-mq-publish)
```

###  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)
