rabbitmq-tutorials/php
2010-11-23 13:18:07 +00:00
..
emit_log.php php examples 2010-11-23 03:26:53 +08:00
new_task.php php examples 2010-11-23 03:26:53 +08:00
README.md improves running instructions 2010-11-23 03:30:21 +08:00
receive_logs.php php examples 2010-11-23 03:26:53 +08:00
receive.php Minor tweaks to first example code, queue should be autodelete=false etc 2010-11-23 13:18:07 +00:00
send.php Minor tweaks to first example code, queue should be autodelete=false etc 2010-11-23 13:18:07 +00:00
worker.php php examples 2010-11-23 03:26:53 +08:00

RabbitMQ - PHP Examples

Requirements

To run the examples you need:

  • A running RabbitMQ server
  • PHP 5.3
  • php-amqplib

Setup

To get the php-amqplib library execute the following command inside the present folder:

	$ git clone http://github.com/tnc/php-amqplib.git lib/php-amqplib

Running the Examples

To run the examples do in one Terminal:

	$ php send.php some message to send

Then in another Terminal try:

	$ php receive.php