https://github.com/ronte-ltd/zmq-bundle
https://github.com/ronte-ltd/zmq-bundle
client symfony-bundle zeromq
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ronte-ltd/zmq-bundle
- Owner: ronte-ltd
- Created: 2017-02-09T13:20:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-21T15:32:23.000Z (over 9 years ago)
- Last Synced: 2025-09-11T12:45:30.115Z (9 months ago)
- Topics: client, symfony-bundle, zeromq
- Language: PHP
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Zmq client bundle
=================
[](https://travis-ci.org/ronte-ltd/zmq-bundle)
[](https://scrutinizer-ci.com/g/ronte-ltd/zmq-bundle/?branch=master)
[](https://scrutinizer-ci.com/g/ronte-ltd/zmq-bundle/?branch=master)
# Install
``` bash
composer require "ronte-ltd/zmq"
```
# Configure
``` yaml
# app/config/config.yml
# ...
ronte-zmq:
type: \ZMQ::SOCKET_XPUB
url: "tcp://localhost:12345"
```
# Use
``` php
$result = $container->get('ronte-zmq.client')
->send('Some queue message');
if ($result) {
echo "Message sent.\n";
} else {
echo "Message not sent.\n";
}
```