PHPackages                             eric-strive/amqp-retry - 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. eric-strive/amqp-retry

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

eric-strive/amqp-retry
======================

ampq to retry

v2.0.28(5y ago)86703MITPHPPHP &gt;=7.2

Since Nov 16Pushed 5y ago3 watchersCompare

[ Source](https://github.com/eric-strive/amqp-retry)[ Packagist](https://packagist.org/packages/eric-strive/amqp-retry)[ RSS](/packages/eric-strive-amqp-retry/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependencies (6)Versions (8)Used By (0)

component-creater
=================

[](#component-creater)

功能
--

[](#功能)

- 该组件主要是在amqp组件的基础上做扩展，可以对rabbitmq队列进行自动重试，还可以手动重试；

### 下载安装包

[](#下载安装包)

```
composer require eric-strive/amqp-retry

```

### 同步配置

[](#同步配置)

```
php bin/hyperf.php vendor:publish eric-strive/amqp-retry
```

- 根剧自己的要求修改配置

```
retry_times 自动重试次数
retry_times_interval 每次重试间隔时间基数 间隔时间=times*retry_times_interval
比如retry_times_interval设置的100 第二次重试时间隔的时间就是2*100 200秒
```

### 新建数据表

[](#新建数据表)

```
php bin/hyperf.php migrate
```

### 重试脚本执行

[](#重试脚本执行)

```
php bin/hyperf.php amqp:retry exchange routing_key
exchange 交换器 可不填 不填就会重试所有状态为error和terminated
routing_key 路由键名称
```

- 注意

```
config/autoload/amqp.php 配置文件中将 close_on_destruct 改为 false ;执行重试脚本时会报错
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

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 ~25 days

Recently: every ~33 days

Total

7

Last Release

1854d ago

Major Versions

v1.1.4 → v2.0.262021-04-14

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/578876?v=4)[wangwei](/maintainers/wangwei)[@wangwei](https://github.com/wangwei)

---

Top Contributors

[![eric-strive](https://avatars.githubusercontent.com/u/22976965?v=4)](https://github.com/eric-strive "eric-strive (2 commits)")

---

Tags

phpswooleAMQPhyperf

### Embed Badge

![Health badge](/badges/eric-strive-amqp-retry/health.svg)

```
[![Health](https://phpackages.com/badges/eric-strive-amqp-retry/health.svg)](https://phpackages.com/packages/eric-strive-amqp-retry)
```

###  Alternatives

[hyperf/amqp

A amqplib for hyperf.

241.2M56](/packages/hyperf-amqp)[mzh/hyperf-validate

hyperf-validate 支持request 和方法场景验证，兼容tp5写法 支持控制器注解验证、方法注解验证

202.9k1](/packages/mzh-hyperf-validate)[hooklife/hyperf-aliyun-amqp

123.0k](/packages/hooklife-hyperf-aliyun-amqp)

PHPackages © 2026

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