Steps you have to take to use the PHP AMQP extension to publish messages and to consume messages.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
consumer.php
publisher.php

README.md

Publish and consume message using RabbitMQ and PHP AMQP library

Steps you have to take to use the PHP AMQP extension to publish messages and to consume messages.

  1. Installing

You have to install RabbitMQ Installation and the PHP AMQP library Installation.

  1. Using the demo files (assume we saved the files into a folder named workers)

Browser:

http://localhost/workers/publisher.php

http://localhost/workers/consumer.php

CLI:

/var/www/workers/>>>php publisher.php

/var/www/workers/>>>php consumer.php