shogochiai/php-zmq

There is no license information available for the latest version (dev-master) of this package.

Zero MQ library for php

Installs: 59 856

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 121

Language:Shell

dev-master 2015-06-16 02:11 UTC

This package is not auto-updated.

Last update: 2025-06-11 12:31:46 UTC


README

PHP bindings for 0MQ. The documentation is available at http://php.net/zmq

Build Status

The API is roughly as follows:

<?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