phootobr / rabbitmq-consumer
Consumer PHP for RabbitMQ
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
pkg:composer/phootobr/rabbitmq-consumer
Requires
- php: ^7.2
- php-amqplib/php-amqplib: ^2.9
- symfony/dotenv: ^4.2
This package is auto-updated.
Last update: 2025-10-27 12:44:24 UTC
README
This project is a consumer implementation for RabbitMQ from Phooto
Installation
composer create-project phootobr/rabbitmq-consumer
How to use
- After install add the
.envfile with the connection settings - Add the code you want to execute upon receiving a RabbitMQ message in the
app/Job.phpfile - In the
start.phpfile 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.conffile as an example
License
This project is open-sourced software licensed under the MIT license.