Registry / messaging / php-amqplib-rabbitmq-bundle

php-amqplib-rabbitmq-bundle

JSON →
library2.19.0phppackagistunverified

Integrates php-amqplib with Symfony & RabbitMq.

composer require php-amqplib/rabbitmq-bundle
INSTALL
IMPORT
SIG · PHP-AMQPLIB-RABBIT
P
php-amqplib-rabbitmq-bundle
messagingphpv2.19.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AMQPStreamConnection
use PhpAmqpLib\Connection\AMQPStreamConnection;

Connects to RabbitMQ and declares a queue.

<?php require_once 'vendor/autoload.php'; use PhpAmqpLib\Connection\AMQPStreamConnection; $connection = new AMQPStreamConnection('localhost', 5672, 'guest', 'guest'); $channel = $connection->channel(); $channel->queue_declare('hello', false, false, false, false); echo "Queue declared\n"; $channel->close(); $connection->close();
Debug
Known issues
gotchaThis bundle was formerly known as emag-tech-labs/rabbitmq-bundle and oldsound/rabbitmq-bundle; ensure you use the correct package name.
fix
Use php-amqplib/rabbitmq-bundle in composer.json.
affects: >=1.0.0
Upgrade
Version history
2.19.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
Amazon
1
OpenAI (training)
1
Resources
php-amqplib-rabbitmq-bundle — pip install php-amqplib-rabbitmq-bundle · libregistry