bernard/amqp-driver

AMQP driver for Bernard

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

README

Latest Version

AMQP driver for Bernard.

Install

Via Composer

$ composer require bernard/amqp-driver

Usage

<?php

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

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

License

The MIT License (MIT). Please see License File for more information.