File tree 1 file changed +12
-9
lines changed
1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change 1
1
PHP bindings for 0MQ. The documentation is available at http://php.net/zmq
2
2
3
- The API is roughly as follows:
3
+ [ ![ Build Status ] ( https://travis-ci.org/zeromq/php-zmq.png?branch=master )] ( https://travis-ci.org/zeromq/php-zmq )
4
4
5
- <?php
5
+ The API is roughly as follows:
6
6
7
- /* Create new queue object */
8
- $queue = new ZMQSocket(new ZMQContext(), ZMQ::SOCKET_REQ, "MySock1");
7
+ ``` php
8
+ <?php
9
9
10
- /* Connect to an endpoint */
11
- $queue->connect("tcp://127.0.0.1:5555 ");
10
+ /* Create new queue object */
11
+ $queue = new ZMQSocket(new ZMQContext(), ZMQ::SOCKET_REQ, "MySock1 ");
12
12
13
- /* send and receive */
14
- var_dump( $queue->send("hello there, using socket 1")->recv() );
13
+ /* Connect to an endpoint */
14
+ $queue->connect("tcp://127.0.0.1:5555" );
15
15
16
- ?>
16
+ /* send and receive */
17
+ var_dump($queue->send("hello there, using socket 1")->recv());
17
18
19
+ ?>
20
+ ```
18
21
19
22
For installation instructions see http://pecl.php.net/zmq
20
23
You can’t perform that action at this time.
0 commit comments