Registry / messaging / hyperf-amqp

hyperf-amqp

JSON →
library3.1.68phppackagistunverified

A amqplib for hyperf.

composer require hyperf/amqp
INSTALL
IMPORT
SIG · HYPERF-AMQP
H
hyperf-amqp
messagingphpv3.1.68
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.

ConnectionFactory
use Hyperf\Amqp\ConnectionFactory;

Publish a message to RabbitMQ via AMQP

use Hyperf\Amqp\ConnectionFactory; use Hyperf\Amqp\Message\ProducerMessage; $factory = new ConnectionFactory(); $connection = $factory->make([ 'host' => 'localhost', 'port' => 5672, 'user' => 'guest', 'password' => 'guest', ]); $message = new ProducerMessage(); $message->setPayload('Hello World'); $connection->publish($message, 'exchange', 'routing_key');
Debug
Known issues
breakingRequires Hyperf framework and PHP 8.0+
fix
Ensure Hyperf is installed and PHP version is 8.0 or higher
affects: >=3.0.0
Upgrade
Version history
3.1.68latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources
hyperf-amqp — pip install hyperf-amqp · libregistry