PHPackages                             jeromejhipolito/laravel-amqp-toolkit - 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. jeromejhipolito/laravel-amqp-toolkit

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

jeromejhipolito/laravel-amqp-toolkit
====================================

Laravel package for AMQP message handling with automatic retry, dead letter queue, and failure management

v1.0.0(3mo ago)011MITPHPPHP ^8.2

Since Jan 20Pushed 3mo agoCompare

[ Source](https://github.com/jeromejhipolito/laravel-amqp-toolkit)[ Packagist](https://packagist.org/packages/jeromejhipolito/laravel-amqp-toolkit)[ RSS](/packages/jeromejhipolito-laravel-amqp-toolkit/feed)WikiDiscussions main Synced 1mo ago

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

Laravel AMQP Toolkit
====================

[](#laravel-amqp-toolkit)

A Laravel package for robust AMQP message handling with automatic retry, dead letter queue management, and comprehensive failure tracking.

Features
--------

[](#features)

- **Base Consumer Class**: Abstract class for building AMQP consumers with built-in error handling
- **Automatic Retry**: Exponential backoff retry mechanism (1, 5, 15, 60 minutes)
- **Dead Letter Queue**: Messages that exceed max retries are moved to dead letter status
- **Failure Tracking**: All failed messages are stored in database for inspection and manual retry
- **Artisan Commands**: CLI commands for managing failed messages
- **Statistics**: Get insights into message processing status

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 11.0+
- bschmitt/laravel-amqp package

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

[](#installation)

```
composer require jeromejhipolito/laravel-amqp-toolkit
```

The package will auto-register its service provider.

### Publish Migration

[](#publish-migration)

```
php artisan vendor:publish --tag=amqp-toolkit-migrations
php artisan migrate
```

Usage
-----

[](#usage)

### Creating a Consumer

[](#creating-a-consumer)

Extend the `BaseAmqpConsumer` class to create your own consumer:

```
