2017 © Pedro Peláez
 

library ears

A PHP RabbitMQ library using php-amqplib

image

markdunphy/ears

A PHP RabbitMQ library using php-amqplib

  • Friday, July 25, 2014
  • by markdunphy
  • Repository
  • 0 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Ears Build Status

A PHP RabbitMQ library using php-amqplib, (*1)

Basic Usage

These examples use the default localhost RabbitMQ server created when you install it. For production use (and you're crazy if you're doing this), you should configure a markdunphy\Ears\Connection object to pass in as the first argument to the markdunphy\Ears\Ears constructor., (*2)

Below is a simple hello world demonstration. Run the consumer code in one terminal tab and the publisher in another to watch things happen., (*3)

Configuring a Consumer
use \markdunphy\Ears\Ears;

$consumer = ( new Ears )->getConsumer();

$consumer->consumeBasic( 'hello', function( $message ) {
  echo $message->body . "\n";
} );
Configuring a Publisher
use \markdunphy\Ears\Ears;

$ears = new Ears( null, 'hello' );

$publisher = $ears->getPublisher();

$publisher->sendBasic( 'Hello world' );

The Versions

25/07 2014

dev-master

9999999-dev

A PHP RabbitMQ library using php-amqplib

  Sources   Download

The Requires

 

The Development Requires

23/07 2014

0.1.0

0.1.0.0

A PHP RabbitMQ library using php-amqplib

  Sources   Download

The Requires

 

The Development Requires