Download the PHP package luoxiaojun/laravel-queue-rabbitmq without Composer
On this page you can find all versions of the php package luoxiaojun/laravel-queue-rabbitmq. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download luoxiaojun/laravel-queue-rabbitmq
More information about luoxiaojun/laravel-queue-rabbitmq
Files in luoxiaojun/laravel-queue-rabbitmq
Package laravel-queue-rabbitmq
Short Description RabbitMQ driver for Laravel Queue. Supports Laravel Horizon
License MIT
Informations about the package laravel-queue-rabbitmq
RabbitMQ Queue driver for Laravel
Installation
You can install this package via composer using this command:
The package will automatically register itself using Laravel auto-discovery.
Setup connection in config/queue.php
Laravel Usage
Once you completed the configuration you can use Laravel Queue API. If you used other queue drivers you do not need to change anything else. If you do not know how to use Queue API, please refer to the official Laravel documentation: http://laravel.com/docs/queues
Lumen Usage
For Lumen usage the service provider should be registered manually as follow in bootstrap/app.php
:
Limitations
- Retry command is not supported
Delay > 1d (Only for Aliyun)
Using other AMQP transports
The package uses enqueue/amqp-lib transport which is based on php-amqplib.
There is possibility to use any amqp interop compatible transport, for example enqueue/amqp-ext
or enqueue/amqp-bunny
.
Here's an example on how one can change the transport to enqueue/amqp-bunny
.
First, install desired transport package:
Change the factory class in config/queue.php
:
Testing
Setup RabbitMQ using docker-compose
:
Run tests:
Contribution
You can contribute to this package by discovering bugs and opening issues. Please, add to which version of package you create pull request or issue. (e.g. [5.2] Fatal error on delayed job)
All versions of laravel-queue-rabbitmq with dependencies
ext-json Version *
illuminate/database Version 5.7.*|5.8.*
illuminate/support Version 5.7.*|5.8.*
illuminate/queue Version 5.7.*|5.8.*
enqueue/amqp-lib Version 0.9.*
queue-interop/amqp-interop Version 0.8.*