bernard/amqp-driver

Bernard 的 AMQP 驱动程序

dev-master / 0.1.x-dev 2018-02-19 17:42 UTC

This package is auto-updated.

Last update: 2024-09-17 06:07:22 UTC


README

Latest Version

Bernard 的 AMQP 驱动程序。

安装

通过 Composer

$ composer require bernard/amqp-driver

使用方法

<?php

use Bernard\Driver\Amqp\Driver;
use PhpAmqpLib\Connection\AMQPStreamConnection;

$connection = new AMQPStreamConnection('localhost', 5672, 'guest', 'guest');
$driver = new Driver($connection, 'exchange');

许可证

MIT 许可证 (MIT)。更多信息请参阅 许可证文件