.. | ||
.gitignore | ||
composer.json | ||
emit_log_direct.php | ||
emit_log_topic.php | ||
emit_log.php | ||
new_task.php | ||
README.md | ||
receive_logs_direct.php | ||
receive_logs_topic.php | ||
receive_logs.php | ||
receive.php | ||
rpc_client.php | ||
rpc_server.php | ||
send.php | ||
worker.php |
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.
Additionally you need PHP 5.3
and php-amqplib
. To get these
dependencies on Ubuntu type:
sudo apt-get install git-core php5-cli
Then you can install php-amqplib
using Composer.
To do that install Composer and add it to your path, then run the following command inside this project folder:
composer.phar install
Code
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 receive_logs_direct.php
php emit_log_direct.php
php receive_logs_topic.php
php emit_log_topic.php
php rpc_server.php
php rpc_client.php