PHPackages                             friendsofhyperf/amqp-job - 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. friendsofhyperf/amqp-job

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

friendsofhyperf/amqp-job
========================

The amqp job for Hyperf.

v3.1.75(5mo ago)26.9k↓46.3%1MITPHP

Since Jul 28Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/friendsofhyperf/amqp-job)[ Packagist](https://packagist.org/packages/friendsofhyperf/amqp-job)[ Fund](https://hdj.me/sponsors/)[ GitHub Sponsors](https://github.com/huangdijia)[ RSS](/packages/friendsofhyperf-amqp-job/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (34)Used By (0)

Amqp Job
========

[](#amqp-job)

[![Latest Stable Version](https://camo.githubusercontent.com/de315f16948ad47bd7f3c340ba787a0d6175d3bad7aa637a71707f1d354bb4ed/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f667269656e64736f666879706572662f616d71702d6a6f62)](https://packagist.org/packages/friendsofhyperf/amqp-job)[![Total Downloads](https://camo.githubusercontent.com/a4e21467f9c3053c9da286218f11b475a27510d365d71d4f50e51817679413a7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f667269656e64736f666879706572662f616d71702d6a6f62)](https://packagist.org/packages/friendsofhyperf/amqp-job)[![License](https://camo.githubusercontent.com/e4db9379c5acca71c9cb434009fd9f7f60aebdd690ac0ac8bcaec1f3876d5731/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f667269656e64736f666879706572662f616d71702d6a6f62)](https://github.com/friendsofhyperf/amqp-job)

The amqp job component for Hyperf.

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

[](#installation)

```
composer require friendsofhyperf/amqp-job
```

Usage
-----

[](#usage)

### Dispatch

[](#dispatch)

```
use FriendsOfHyperf\AmqpJob\Job;
use FriendsOfHyperf\AmqpJob\Annotations\AmqpJob;

use function FriendsOfHyperf\AmqpJob\dispatch;

#[AmqpJob(
    exchange: 'hyperf.exchange',
    routingKey: 'hyperf.routing.key',
    pool: 'default',
    queue: 'hyperf.queue',
)]
class FooJob extends Job
{
    public function handle()
    {
        var_dump('foo');
    }
}

dispatch(new FooJob());
```

### Register Consumer\[Optional\]

[](#register-consumeroptional)

```
namespace App\Amqp\Consumer;

use FriendsOfHyperf\AmqpJob\JobConsumer;
use Hyperf\Amqp\Annotation\Consumer;

#[Consumer(
    exchange: 'hyperf.exchange',
    routingKey: 'hyperf.routing.key',
    queue: 'hyperf.queue',
    name: 'MyConsumer',
    nums: 4

)]
class MyConsumer extends \FriendsOfHyperf\AmqpJob\JobConsumer
{
    //
}
```

Contact
-------

[](#contact)

- [Twitter](https://twitter.com/huangdijia)
- [Gmail](mailto:huangdijia@gmail.com)

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance71

Regular maintenance activity

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.8% 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 ~26 days

Recently: every ~3 days

Total

33

Last Release

171d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8337659?v=4)[Deeka Wong](/maintainers/huangdijia)[@huangdijia](https://github.com/huangdijia)

---

Top Contributors

[![huangdijia](https://avatars.githubusercontent.com/u/8337659?v=4)](https://github.com/huangdijia "huangdijia (45 commits)")[![xuanyanwow](https://avatars.githubusercontent.com/u/28777109?v=4)](https://github.com/xuanyanwow "xuanyanwow (3 commits)")

---

Tags

hyperfv3.1

### Embed Badge

![Health badge](/badges/friendsofhyperf-amqp-job/health.svg)

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

###  Alternatives

[hyperf/amqp

A amqplib for hyperf.

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

Quickly build a background management system for web applications

1.2k2.0k](/packages/mineadmin-mineadmin)[friendsofhyperf/sentry

The sentry component for Hyperf.

1864.6k](/packages/friendsofhyperf-sentry)[hyperf/odin

425.9k](/packages/hyperf-odin)[friendsofhyperf/lock

The lock component for Hyperf.

1447.4k](/packages/friendsofhyperf-lock)

PHPackages © 2026

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