crutch/consumer-amqp

AMQP protocol consumer

v1.0.0 2023-01-19 11:54 UTC

This package is not auto-updated.

Last update: 2024-11-08 03:03:05 UTC


README

AMQP protocol consumer

Install

composer require crutch/consumer-amqp
<?php

/** @var Crutch\Consumer\ConsumerHandler $handler */

$consumer = new Crutch\AmqpConsumer\AmqpConsumer($serviceName, 'localhost', 5672, 'user', 'password');
$consumer->consume('topic', $handler);