2017 © Pedro Peláez
 

library message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

image

ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  • Friday, May 18, 2018
  • by fdiasdev
  • Repository
  • 15 Watchers
  • 2 Stars
  • 2,444 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 4 Open issues
  • 29 Versions
  • 3 % Grown

The README.md

Message Queue php library to publish and subscribe to queues with diferent types of adapters.

Current supported adapters:

Installation

With Composer Add ingresse/message-queue-php as dependency in composer.json, (*1)

    "require": {
        ...
        "ingresse/message-queue-php" : "1.*"
        ...
    }

Run composer update., (*2)

Now the message-queue-php will be autoloaded into your project., (*3)

    require 'vendor/autoload.php';

    $configData = [
        'connection' => [
            'host' => 'localhost',
            'port' => 5672,
            'user' => 'guest',
            'pass' => 'guest',
            'vhost' => '/'
        ],
        'queues' => [
            'worker.test' => [
                'passive' => false,
                'durable' => true,
                'exclusive' => false,
                'autoDelete' => false,
                'delivery_mode' => 2
            ]
        ],
        'exchanges' => [
            'exchange.test' => [                
                'type' => 'fanout'
                'passive' => false,
                'durable' => true,
                'auto_delete' => false,
                'internal' => false,
                'nowait' => false,
                'arguments' => false,
                'ticket' => false,
                'delivery_mode' => 2
            ]
        ],
        'consume' => [
            'Simpler' => [
                'noLocal' => false,
                'noAck' => false,
                'exclusive' => false,
                'noWait' => false
            ]
        ],
        'logger' => [
            'host' => 'localhost',
            'port' => 6379,
            'key' => 'logstash',
            'channel' => 'message-queue-php'
            path' => '/var/log/message-queue-php.log'
        ]
    ];

    $config = new MessageQueuePHP\Config\AMQPConfig($configData);
    $amqpAdapter = new MessageQueuePHP\Adapter\AMQPAdapter($config);


    $myPublisher = new MessageQueuePHP\Publisher\Publisher($amqpAdapter, 'worker.test');
    $myPublisher
            ->setMessage($myData)
            ->send();

    $subscriber = new MessageQueuePHP\Subscriber\Subscriber($amqpAdapter);
    $simplerConsumer = new MessageQueuePHP\Subscriber\Consumer\SimplerConsumer;
    $subscriber
       ->setConsumer($simplerConsumer)
       ->subscribe('worker.test')
       ->consume();

The Versions

18/05 2018

dev-master

9999999-dev https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

18/05 2018

1.8.0

1.8.0.0 https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

15/05 2018

dev-feature/priority-support

dev-feature/priority-support https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

04/11 2016

1.7.0

1.7.0.0 https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

30/08 2016

1.6.3

1.6.3.0 https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

30/08 2016

dev-bugfix/add-queues-config

dev-bugfix/add-queues-config https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

30/08 2016

1.6.2

1.6.2.0 https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

30/08 2016

dev-bugfix/factory-create

dev-bugfix/factory-create https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

30/08 2016

1.6.1

1.6.1.0 https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

30/08 2016

dev-bugfix/update-monolog-version

dev-bugfix/update-monolog-version https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

30/08 2016

1.6

1.6.0.0 https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

30/08 2016

dev-feature/adapter-factory

dev-feature/adapter-factory https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

30/08 2016

dev-bufigx/adapter-factory-constructor

dev-bufigx/adapter-factory-constructor https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

16/08 2016

dev-bugfix/logger-arguments-null

dev-bugfix/logger-arguments-null https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

13/06 2016

1.5

1.5.0.0 https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

13/06 2016

dev-bugfix/predis-version-update

dev-bugfix/predis-version-update https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

08/06 2016

1.4

1.4.0.0 https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

08/06 2016

dev-bugfix/check-config-logger

dev-bugfix/check-config-logger https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

31/05 2016

dev-bugfix/fix-consumer-namespace

dev-bugfix/fix-consumer-namespace https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

27/05 2016

dev-dependecy-predis

dev-dependecy-predis https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

27/05 2016

1.3

1.3.0.0 https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

27/05 2016

dev-revert-9-dependecy-predis

dev-revert-9-dependecy-predis https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

02/05 2016

1.2

1.2.0.0 https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

26/04 2016

dev-feature/logger-adapter

dev-feature/logger-adapter https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

06/04 2016

1.1

1.1.0.0 https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

06/04 2016

dev-bugfix/update-phpamqplib

dev-bugfix/update-phpamqplib https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

04/04 2016

1.0

1.0.0.0 https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

04/04 2016

dev-bugfix/try-catch-adapter-constructor

dev-bugfix/try-catch-adapter-constructor https://github.com/ingresse/message-queue-php

Message Queue php library to publish and subscribe to queues with diferent types of adapters

  Sources   Download

MIT

The Requires

 

queue amqp pubsub

22/03 2016

dev-feature/logstash-config

dev-feature/logstash-config

  Sources   Download

The Requires