2017 © Pedro Peláez
 

library amqp

PhpAmqpLib wrapper

image

mkhairul/amqp

PhpAmqpLib wrapper

  • Wednesday, September 16, 2015
  • by mkhairul
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

amqp

Its a PhpAmqpLib wrapper., (*1)

Install

Via Composer, (*2)

``` bash $ composer require mkhairul/amqp dev-master, (*3)


## Usage ### YAML Config File (config.yaml) ``` yaml rabbit: host: localhost port: 5672 login: guest pass: guest vhost: / exchange: name: someExchange queue: name: someQueue

Script

``` php <?php require_once 'vendor/autoload.php'; use Symfony\Component\Yaml\Yaml; use Mkhairul\AMQPWrapper\AMQPWrapper;, (*4)

$config = Yaml::parse(file_get_contents('config.yaml')); $conn = new AMQPWrapper($config, 'rabbit'); $conn->sendMessage('message-type', 'Time\'s Up!'); ```, (*5)

License

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

The Versions

16/09 2015

dev-master

9999999-dev https://github.com/mkhairul/amqp

PhpAmqpLib wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

wrapper amqp