2017 © Pedro Peláez
 

library queue-interop

Promoting the interoperability of MQs objects. Based on Java JMS

image

queue-interop/queue-interop

Promoting the interoperability of MQs objects. Based on Java JMS

  • Thursday, April 5, 2018
  • by makasim
  • Repository
  • 10 Watchers
  • 172 Stars
  • 331,410 Installations
  • PHP
  • 29 Dependents
  • 2 Suggesters
  • 5 Forks
  • 2 Open issues
  • 9 Versions
  • 47 % Grown

The README.md

Queue Interoperability

Latest Stable Version Monthly Downloads Total Downloads License, (*1)

About

queue-interop tries to identify and standardize a common way for PHP programs to create, send, receive and read MQ messages to achieve interoperability., (*2)

Through discussions and trials, we try to create a standard, made of common interfaces but also recommendations., (*3)

If PHP projects that provide queue implementations begin to adopt these common standards, then PHP applications and projects that use MQs can depend on the common interfaces instead of specific implementations. This facilitates a high-level of interoperability and flexibility that allows users to consume any MQ transport implementation that can be adapted to these interfaces., (*4)

The work done in this project is not officially endorsed by the PHP-FIG. We adhere to the spirit and ideals of PHP-FIG., (*5)

Installation

You can install this package through Composer:, (*6)

# Install a Queue Interop compatible transport, for example 
$ composer require enqueue/fs

Examples

Send a message:, (*7)

<?php

use Enqueue\Fs\FsConnectionFactory;

$context = (new FsConnectionFactory())->createContext();

$context->createProducer()->send(
    $context->createQueue('aQueue'), 
    $context->createMessage('aBody')
);

Consume a message:, (*8)

<?php

use Enqueue\Fs\FsConnectionFactory;

$context = (new FsConnectionFactory())->createContext();

$consumer = $context->createConsumer($context->createQueue('aQueue'));

$timeout = 5000; // 5sec
if ($message = $consumer->receive($timeout)) {
    // process the message.

    $consumer->acknowledge($message);
}

Find out more here:, (*9)

Compatible projects

Projects

Implementations

Amqp interop

There is AMQP interop built on top of Queue Interop. It is completly compatible with queue interop and only adds some AMQP specific features:, (*10)

  • Queue\Exchange declaration
  • Queue\Exchange Binding.
  • Basic consume support.
  • and other AMQP specific features.

Compatible projects

Workflow

Everyone is welcome to join and contribute., (*11)

We try to not break BC by creating new interfaces instead of editing existing ones., (*12)

While we currently work on interfaces, we are open to anything that might help towards interoperability, may that be code, best practices, etc., (*13)

License

MIT license, (*14)

The Versions

05/04 2018

0.7.x-dev

0.7.9999999.9999999-dev https://github.com/queue-interop/queue-interop

Promoting the interoperability of MQs objects. Based on Java JMS

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

queue messaging jms message queue mq

30/03 2018

dev-master

9999999-dev https://github.com/queue-interop/queue-interop

Promoting the interoperability of MQs objects. Based on Java JMS

  Sources   Download

MIT

The Requires

  • php >=5.5

 

queue messaging jms message queue mq

01/03 2018

1.0.0-alpha1

1.0.0.0-alpha1 https://github.com/queue-interop/queue-interop

Promoting the interoperability of MQs objects. Based on Java JMS

  Sources   Download

MIT

The Requires

  • php >=5.5

 

queue messaging jms message queue mq

10/08 2017

0.6.1

0.6.1.0 https://github.com/queue-interop/queue-interop

Promoting the interoperability of MQs objects. Based on Java JMS

  Sources   Download

MIT

The Requires

  • php >=5.5

 

queue messaging jms message queue mq

04/08 2017

0.6.0

0.6.0.0 https://github.com/queue-interop/queue-interop

Promoting the interoperability of MQs objects. Based on Java JMS

  Sources   Download

MIT

queue messaging jms message queue mq

27/07 2017

0.4.x-dev

0.4.9999999.9999999-dev https://github.com/queue-interop/queue-interop

Promoting the interoperability of MQs objects. Based on Java JMS

  Sources   Download

MIT

queue messaging jms message queue mq

07/07 2017

dev-develop

dev-develop https://github.com/queue-interop/queue-interop

Promoting the interoperability of MQs objects. Based on Java JMS

  Sources   Download

MIT

queue messaging jms message queue mq

07/07 2017

dev-completion-listener

dev-completion-listener https://github.com/queue-interop/queue-interop

Promoting the interoperability of MQs objects. Based on Java JMS

  Sources   Download

MIT

queue messaging jms message queue mq

07/07 2017

0.5.0

0.5.0.0 https://github.com/queue-interop/queue-interop

Promoting the interoperability of MQs objects. Based on Java JMS

  Sources   Download

MIT

queue messaging jms message queue mq