用于0MQ的PHP绑定。该文档可从http://php.net/zmq
API大致如下:
<?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()); ?>
有关安装说明,请参阅http://pecl.php.net/zmq