lefuturiste/rabbitmq-publisher

This is a helper for Publish a rabbit mq message.

v1.2.4 2020-04-10 20:38 UTC

This package is auto-updated.

Last update: 2024-04-11 13:51:53 UTC


README

This is a helper for Publish a rabbit mq message.

Installation

composer require lefuturiste/rabbitmq-publisher

Usage

$rabbitmqClient = new Lefuturiste\RabbitMQPublisher\Client('example.com', '424242', 'user', 'password', 'virtual_host');
//you can use array as message body
//body is json encoded
$rabbitmqClient->publish('Hello world', 'my_event');

Tests

vendor/bin/phpunit tests/

Enjoy!