Registry /
messaging / php-amqplib-rabbitmq-bundle
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();
Upgrade
Version history
2.19.0latest on Packagist
Audit
Dependencies
No dependency data recorded yet.