Here you can find a PHP code examples from RabbitMQ tutorials.
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
php send.php
php receive.php
php new_task.php
php worker.php
Tutorial three: Publish/Subscribe
php receive_logs.php
php emit_log.php
php rpc_server.php
php rpc_client.php