Download the PHP package vladmeh/rabbitmq-client without Composer
On this page you can find all versions of the php package vladmeh/rabbitmq-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vladmeh/rabbitmq-client
More information about vladmeh/rabbitmq-client
Files in vladmeh/rabbitmq-client
Package rabbitmq-client
Short Description Laravel RabbitMQ Client
License MIT
Homepage https://github.com/vladmeh/rabbitmq-client
Informations about the package rabbitmq-client
vladmeh/rabbitmq-client
Wrapper to php-amqplib library for publishing and consuming RabbitMQ messages using Laravel framework
Features
PHP8.0 support will be available after php-amqplib is updated to the next major version 3.0. (https://github.com/php-amqplib/php-amqplib/pull/858)
Version Compatibility
Laravel | Rabbit Client |
---|---|
6.x | 1.x |
7.x | 2.x |
8.x | -- |
Installation
Composer
or add the following to your requirement part within the composer.json:
Laravel will automatically register service provider (Vladmeh\RabbitMQ\RabbitMQClientProvider) and facade when is installed
Configure
Add these properties to .env with proper values:
If you need advanced configuration properties run:
This command will create a config file \config\rabbit.php
Integration
Producer
Publish a message in the existing queue
Publish a message in the existing exchange
Publish a message, with custom settings
All default settings are defined in
\config\rabbit.php
.
Consumer
Consume messages to an existing queue
RPC client
All versions of rabbitmq-client with dependencies
php-amqplib/php-amqplib Version ^2.12
ext-simplexml Version *
ext-json Version *