Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
ZeroMQ for PHP
tag: 0.7.0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
docs
examples
tests
ChangeLog
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.