haibian / laravel-queue-rabbitmq
RabbitMQ driver for Laravel Queue
Requires
- php: >=5.6.4
- illuminate/database: 5.4.*
- illuminate/queue: 5.4.*
- illuminate/support: 5.4.*
- php-amqplib/php-amqplib: 2.6.*
Requires (Dev)
- mockery/mockery: ^0.9.5
- phpunit/phpunit: ^5.5
This package is not auto-updated.
Last update: 2025-02-05 21:19:21 UTC
README
####Installation
-
Install this package via composer using:
composer require vladimir-yuldashev/laravel-queue-rabbitmq:5.4
-
Add LaravelQueueRabbitMQServiceProvider to
providers
array inconfig/app.php
:VladimirYuldashev\LaravelQueueRabbitMQ\LaravelQueueRabbitMQServiceProvider::class,
-
Add these properties to
.env
with proper values:QUEUE_DRIVER=rabbitmq RABBITMQ_HOST=127.0.0.1 RABBITMQ_PORT=5672 RABBITMQ_VHOST=/ RABBITMQ_LOGIN=guest RABBITMQ_PASSWORD=guest RABBITMQ_QUEUE=queue_name
You can also find full examples in src/examples folder.
####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
####PHPUnit Unit tests will be provided soon.
####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)
If you want to make feature for several versions (for example: 5.2, 5.3 and 5.4). Create PR for the lowest version (5.2). Hence, you should use branch v5.2.
####Supported versions of Laravel (+Lumen)
4.0, 4.1, 4.2, 5.0, 5.1, 5.2, 5.3, 5.4
The version is being matched by the release tag of this library.