fittinq / symfony-rabbitmq
There is no license information available for the latest version (19.2.2) of this package.
19.2.2
2024-10-16 11:37 UTC
Requires
- php-amqplib/php-amqplib: ^3.4
- symfony/console: ^6.3
- symfony/framework-bundle: ^5.0|^6.0
Requires (Dev)
- phpunit/phpunit: ^10.0
- dev-main
- 19.2.2
- 19.2.1
- 19.2.0
- 19.1.0
- 19.0.0
- 18.0.1
- 18.0.0
- 17.0.1
- 17.0.0
- 16.0.1
- 16.0.0
- 15.0.5
- 15.0.4
- 15.0.3
- 15.0.2
- 15.0.1
- 15.0.0
- 14.4.1
- 14.4.0
- 14.3.0
- 14.2.2
- 14.2.1
- 14.2.0
- 14.1.1
- 14.1.0
- 14.0.1
- 14.0.0
- 13.0.4
- 13.0.3
- 13.0.2
- 13.0.1
- 13.0.0
- 12.3.8
- 12.3.7
- 12.3.6
- 12.3.5
- 12.3.4
- 12.3.3
- 12.3.2
- 12.3.1
- 12.3.0
- 12.2.0
- 12.1.1
- 12.1.0
- 12.0.0
- 11.1.0
- 11.0.0
- 10.0.0
- 9.4.0
- 9.3.0
- 9.2.0
- 9.1.0
- 9.0.2
- 9.0.1
- 9.0.0
- 8.4.0
- 8.3.0
- 8.2.0
- 8.1.3
- 8.1.2
- 8.1.1
- 8.1.0
- 8.0.2
- 8.0.1
- 8.0.0
- 7.0.0
- 6.3.1
- 6.3.0
- 6.2.0
- 6.1.0
- 6.0.0
- 5.1.0
- 5.0.0
- 4.1.0
- 4.0.0
- 3.0.0
- 2.1.0
- 2.0.0
- 1.1.0
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-expand-tests
- dev-stevenOps
- dev-steven
- dev-thijs
- dev-tests
This package is auto-updated.
Last update: 2024-10-16 09:37:56 UTC
README
This helps creating connections to RabbitMQ
Install via composer
composer require fittinq\symfony-rabbitmq
Configure bundle
config/bundles.php
<?php
return [
// ...
Fittinq\Symfony\RabbitMQ\SymfonyRabbitMQBundle::class => ['all' => true],
];
Add the following entries in your .env file and change where needed:
RABBITMQ_HOST=rabbitmq
RABBITMQ_PORT=5672
RABBITMQ_USERNAME=guest
RABBITMQ_PASSWORD=guest
Add the following entries in your service.yaml this gives the consumer a handler to handle single messages and an error handler if it can't consume any.
Fittinq\Symfony\Rabbitmq\Command\ConsumeCommand:
tags:
- { name: 'console.command', command: 'name:of:command', description: 'description' }
arguments:
- Fittinq\Symfony\RabbitMQ\RabbitMQ\RabbitMQ
- Fittinq\Symfony\RabbitMQ\Handler\Handler
- Fittinq\Symfony\RabbitMQ\ErrorHandler\ErrorHandler
- 'queueName'