Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lefuturiste/rabbitmq-publisher
This is a helper for Publish a rabbit mq message.
https://github.com/lefuturiste/rabbitmq-publisher
Last synced: 4 days ago
JSON representation
This is a helper for Publish a rabbit mq message.
- Host: GitHub
- URL: https://github.com/lefuturiste/rabbitmq-publisher
- Owner: lefuturiste
- Created: 2018-01-12T16:12:54.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-10T20:38:40.000Z (over 4 years ago)
- Last Synced: 2024-04-29T17:07:16.730Z (7 months ago)
- Language: PHP
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rabbit mq publisher
This is a helper for Publish a rabbit mq message.
## Installation
```bash
composer require lefuturiste/rabbitmq-publisher
```## Usage
```php
$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
```bash
vendor/bin/phpunit tests/
```Enjoy!