File tree Expand file tree Collapse file tree 1 file changed +25
-14
lines changed Expand file tree Collapse file tree 1 file changed +25
-14
lines changed Original file line number Diff line number Diff line change 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
+
2
6
3
7
## Requirements ##
4
8
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 ) :
6
21
7
- - A running RabbitMQ server
8
- - PHP 5.3
9
- - php-amqplib
22
+ php send.php
23
+ php receive.php
10
24
11
- ## Setup ##
12
25
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 ) :
14
27
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
18
30
19
- To run the examples do in one Terminal:
20
31
21
- $ php send.php some message to send
32
+ [ Tutorial three: Publish/Subscribe ] ( http://www.rabbitmq.com/tutorial-three-python.html )
22
33
23
- Then in another Terminal try:
34
+ php receive_logs.php
35
+ php emit_log.php
24
36
25
- $ php receive.php
You can’t perform that action at this time.
0 commit comments