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-22 03:15:42 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);