ronte-ltd/zmq-bundle

Wrapper arround zmq client

Installs: 33

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 1

Open Issues: 0

Type:symfony-bundle

1.0.3 2017-02-21 15:31 UTC

This package is not auto-updated.

Last update: 2024-10-27 03:26:28 UTC


README

Build Status Scrutinizer Code Quality Code Coverage

Install

composer require "ronte-ltd/zmq"

Configure

# app/config/config.yml
# ...
ronte-zmq:
  type: \ZMQ::SOCKET_XPUB
  url: "tcp://localhost:12345"

Use

$result = $container->get('ronte-zmq.client')
    ->send('Some queue message');

if ($result) {
    echo "Message sent.\n";
} else {
    echo "Message not sent.\n";
}