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
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-10-27 03:26:28 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"; }