lefuturiste / rabbitmq-publisher
This is a helper for Publish a rabbit mq message.
v1.2.4
2020-04-10 20:38 UTC
Requires
- ext-json: *
- php-amqplib/php-amqplib: ^2.7
Requires (Dev)
- phpunit/phpunit: ^6.4
- vlucas/phpdotenv: ^3.4
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!