Skip to content

Commit 818ada4

Browse files
committed
readme: reenable build badge for travis ci
1 parent 6d9743d commit 818ada4

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

README.md

+12-9
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
PHP bindings for 0MQ. The documentation is available at http://php.net/zmq
22

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)
44

5-
<?php
5+
The API is roughly as follows:
66

7-
/* Create new queue object */
8-
$queue = new ZMQSocket(new ZMQContext(), ZMQ::SOCKET_REQ, "MySock1");
7+
```php
8+
<?php
99

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");
1212

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");
1515

16-
?>
16+
/* send and receive */
17+
var_dump($queue->send("hello there, using socket 1")->recv());
1718

19+
?>
20+
```
1821

1922
For installation instructions see http://pecl.php.net/zmq
2023

0 commit comments

Comments
 (0)