This project is a consumer implementation for RabbitMQ from Phooto
composer create-project phootobr/rabbitmq-consumer
- After install add the
.env
file with the connection settings - Add the code you want to execute upon receiving a RabbitMQ message in the
app/Job.php
file - In the
start.php
file change the queue you want to listen on line 16:$consumer->init('YOUR_QUEUE');
- Run the script on the command line with PHP:
php start.php
- (optional) Configure the supervisord to keep your script running in the background using the
app-consumer-supervisor.conf
file as an example
This project is open-sourced software licensed under the MIT license.