2017 © Pedro Peláez
 

library silex-amqp-provider

AMQP service provider for the Silex framework.

image

ebichan/silex-amqp-provider

AMQP service provider for the Silex framework.

  • Tuesday, August 1, 2017
  • by Ebichan
  • Repository
  • 2 Watchers
  • 3 Stars
  • 35,364 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 10 Forks
  • 2 Open issues
  • 3 Versions
  • 4 % Grown

The README.md

silex-amqp-provider

Amqp service provider for the Silex framework., (*1)

This repository is strongly inspired by the work of Vitaliy Chesnokov on his Mongo Silex Provider., (*2)

Install via composer

Add in your composer.json the require entry for this library., (*3)

{
    "require": {
        "ebichan/silex-amqp-provider": "dev-master"
    }
}

and run composer install (or update) to download all files., (*4)

Usage

Service registration

$app->register(new AmqpServiceProvider, array(
    'amqp.connections' => array(
        'default' => array(
            'host' => 'localhost',
            'port' => 5672,
            'username' => 'guest',
            'password' => 'guest',
            'vhost'    => '/'
        )
    ),
));

Connections retrieving

$connections = $app['amqp'];
$defaultConnection = $connections['default']; 

Creating amqp connection via factory

$amqpFactory = $app['amqp.factory'];
$customConnection = $amqpFactory('localhost', 5672, 'guest', 'guest', '/');

The Versions

01/08 2017

dev-master

9999999-dev https://github.com/jonathan-sousa/silex-amqp-provider

AMQP service provider for the Silex framework.

  Sources   Download

MIT

The Requires

 

by Jonathan Sousa

rabbitmq silex queue amqp

06/06 2016

1.0.1

1.0.1.0 https://github.com/jonathan-sousa/silex-amqp-provider

AMQP service provider for the Silex framework.

  Sources   Download

MIT

The Requires

 

by Jonathan Sousa

rabbitmq silex queue amqp

09/03 2015

1.0.0

1.0.0.0 https://github.com/Ebichan/silex-amqp-provider

AMQP service provider for the Silex framework.

  Sources   Download

MIT

The Requires

 

by Jonathan Sousa

rabbitmq silex queue amqp