Registry / messaging / videlalvaro-php-amqplib

videlalvaro-php-amqplib

JSON →
library3.7.4phppackagistunverified

Pure PHP implementation of the AMQP protocol, tested against RabbitMQ.

composer require videlalvaro/php-amqplib
INSTALL
IMPORT
SIG · VIDELALVARO-PHP-AM
V
videlalvaro-php-amqplib
messagingphpv3.7.4
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;

Connect to RabbitMQ and publish a message to a queue.

use PhpAmqpLib\Connection\AMQPStreamConnection; use PhpAmqpLib\Message\AMQPMessage; $connection = new AMQPStreamConnection('localhost', 5672, 'guest', 'guest'); $channel = $connection->channel(); $channel->queue_declare('hello', false, false, false, false); $msg = new AMQPMessage('Hello World!'); $channel->basic_publish($msg, '', 'hello'); $channel->close(); $connection->close();
Debug
Known issues
breakingThe package was renamed from videlalvaro/php-amqplib to php-amqplib/php-amqplib. The old name is deprecated.
fix
Use php-amqplib/php-amqplib instead.
affects: >=3.0
Upgrade
Version history
3.7.4latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
32
OpenAI (training)
1
Resources
videlalvaro-php-amqplib — pip install videlalvaro-php-amqplib · libregistry