rabbitmq-tutorials/php
2010-11-30 17:35:14 +00:00
..
emit_log.php Final touches to third tutorial examples. 2010-11-23 13:32:23 +00:00
new_task.php Final touches to second tutorial examples. 2010-11-23 13:27:09 +00:00
README.md Final touches to second tutorial examples. 2010-11-23 13:27:09 +00:00
receive_logs.php Final touches to third tutorial examples. 2010-11-23 13:32:23 +00:00
receive.php The queue should be named 'hello' instead of 'test' 2010-11-30 17:35:14 +00:00
send.php The queue should be named 'hello' instead of 'test' 2010-11-30 17:35:14 +00:00
worker.php Final touches to second tutorial examples. 2010-11-23 13:27:09 +00:00

PHP code for RabbitMQ tutorial

Here you can find a PHP code examples from RabbitMQ tutorials.

Requirements

To run the examples you need a running RabbitMQ server.

Additionaly you need PHP 5.3 and php-amqplib. To get these dependencies on Ubuntu type:

sudo apt-get install git-core php5-cli
git clone http://github.com/tnc/php-amqplib.git lib/php-amqplib

Code

Tutorial one: "Hello World!":

php send.php
php receive.php

Tutorial two: Work Queues:

php new_task.php
php worker.php

Tutorial three: Publish/Subscribe

php receive_logs.php
php emit_log.php