ronte-ltd / zmq-bundle
Wrapper arround zmq client
Installs: 34
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.0.7
- ext-zmq: ^1.1.3
- symfony/dependency-injection: ^3.1
- symfony/framework-bundle: ^3.1
Requires (Dev)
- phpunit/phpunit: ^5.0
- symfony/class-loader: ^3.1
- symfony/yaml: ^3.1
This package is not auto-updated.
Last update: 2024-11-10 03:40:34 UTC
README
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"; }