Skip to content
ZeroMQ for PHP
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
docs
examples
tests
LICENSE
README
api.php
config.m4
config.w32
package.xml
php_zmq.h
php_zmq_pollset.h
php_zmq_private.h
zmq.c
zmq.spec
zmq_pollset.c

README

Experimental PHP bindings for 0MQ. The documentation is available at http://valokuva.org/~mikko/php-zmq/

The API is roughly as follows:

<?php

/* Create new queue object */
$queue = new ZMQ(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());

?>
Something went wrong with that request. Please try again.