library php-zmq
Zero MQ library for php
shogochiai/php-zmq
Zero MQ library for php
- Tuesday, June 16, 2015
- by shogochiai
- Repository
- 0 Watchers
- 0 Stars
- 310 Installations
- Shell
- 0 Dependents
- 0 Suggesters
- 92 Forks
- 0 Open issues
- 1 Versions
- 8 % Grown
PHP bindings for 0MQ. The documentation is available at http://php.net/zmq, (*1)
, (*2)
The API is roughly as follows:, (*3)
<?php
/* Create new queue object */
$queue = new ZMQSocket(new ZMQContext(), ZMQ::SOCKET_REQ, "MySock1");
/* Connect to an endpoint */
$queue->connect("tcp://127.0.0.1:5555");
/* send and receive */
var_dump($queue->send("hello there, using socket 1")->recv());
?>
For installation instructions see http://pecl.php.net/zmq, (*4)