8000 Tweaked README. · ikulis/rabbitmq-tutorials@bcfad11 · GitHub
[go: up one dir, main page]

Skip to content

Commit bcfad11

Browse files
committed
Tweaked README.
1 parent 0e3a569 commit bcfad11

File tree

1 file changed

+25
-14
lines changed

1 file changed

+25
-14
lines changed

php/README.md

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,36 @@
1-
# RabbitMQ - PHP Examples #
1+
# PHP code for RabbitMQ tutorial #
2+
3+
Here you can find a PHP code examples from [RabbitMQ
4+
tutorials](http://www.rabbitmq.com/getstarted.html).
5+
26

37
## Requirements ##
48

5-
To run the examples you need:
9+
To run the examples you need a running RabbitMQ server.
10+
11+
Additionaly you need `PHP 5.3` and `php-amqplib`. To get this
12+
dependencies on Ubuntu type:
13+
14+
sudo apt-get install git-core php5-cli
15+
git clone http://github.com/tnc/php-amqplib.git lib/php-amqplib
16+
17+
18+
## Code
19+
20+
[Tutorial one: "Hello World!"](http://www.rabbitmq.com/tutorial-one-python.html):
621

7-
- A running RabbitMQ server
8-
- PHP 5.3
9-
- php-amqplib
22+
php send.php
23+
php receive.php
1024

11-
## Setup ##
1225

13-
To get the php-amqplib library execute the following command inside the present folder:
26+
[Tutorial two: Work Queues](http://www.rabbitmq.com/tutorial-two-python.html):
1427

15-
$ git clone http://github.com/tnc/php-amqplib.git lib/php-amqplib
16-
17-
## Running the Examples ##
28+
php new_task.php
29+
php worker.php
1830

19-
To run the examples do in one Terminal:
2031

21-
$ php send.php some message to send
32+
[Tutorial three: Publish/Subscribe](http://www.rabbitmq.com/tutorial-three-python.html)
2233

23-
Then in another Terminal try:
34+
php receive_logs.php
35+
php emit_log.php
2436

25-
$ php receive.php

0 commit comments

Comments
 (0)
0