PHPackages                             zhizhaoping/laravel-rabbitmq-mq - 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. zhizhaoping/laravel-rabbitmq-mq

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

zhizhaoping/laravel-rabbitmq-mq
===============================

一个基于rabbitmq的fanout exchange实现的laravel的消息队列(pub/sub)

03PHP

Since Oct 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/zhizhaoping/laravel-rabbitmq-mq)[ Packagist](https://packagist.org/packages/zhizhaoping/laravel-rabbitmq-mq)[ RSS](/packages/zhizhaoping-laravel-rabbitmq-mq/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Rabbit fanout MQ
========================

[](#laravel-rabbit-fanout-mq)

一个基于rabbitmq的fanout exchange实现的laravel的消息队列(pub/sub)

发布配置
----

[](#发布配置)

```
php artisan vendor:publish --provider="Rabbitmq\RabbitMqProvider"
```

消费实现
----

[](#消费实现)

[参考实践 Exchange Per Event](https://derickbailey.com/2015/09/02/rabbitmq-best-practices-for-designing-exchanges-queues-and-bindings/)

配置：config/rabbitmq.php

```
// eventName => subscribe
'subscribes' => [
    'user.created' => \Rabbitmq\Subscribe\UserCreated::class,
]
```

eventName本质就是一个fanout的exchange

监听事件
----

[](#监听事件)

```
php artisan rabbitmq:consume
```

发布消息
----

[](#发布消息)

```
$created_user = [
    'id' => 100,
    'name' => 'zhangsan'
];

\Rabbitmq\Facades\Publisher::pushlish('user.created', $created_user)
```

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

Maturity31

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/9c7f585c2d1f47cb6830f5fcdc79620c11a8d87f0b984d294d74a4d28653c66e?d=identicon)[zhizhaoping](/maintainers/zhizhaoping)

---

Top Contributors

[![jackzhiii](https://avatars.githubusercontent.com/u/21115692?v=4)](https://github.com/jackzhiii "jackzhiii (12 commits)")

### Embed Badge

![Health badge](/badges/zhizhaoping-laravel-rabbitmq-mq/health.svg)

```
[![Health](https://phpackages.com/badges/zhizhaoping-laravel-rabbitmq-mq/health.svg)](https://phpackages.com/packages/zhizhaoping-laravel-rabbitmq-mq)
```

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