Skip to content
Promoting the interoperability of message queue objects.
Branch: master
Clone or download
Latest commit 1543206 Mar 11, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Merge pull request #25 from queue-interop/0.7 Nov 20, 2018
.travis.yml Merge pull request #20 from queue-interop/impl Oct 18, 2018
LICENSE move enqueue/psr-queue code to this repo. Jul 7, 2017 Update Mar 11, 2019
phpunit.xml.dist Merge pull request #20 from queue-interop/impl Oct 18, 2018

Queue Interoperability

Latest Stable Version Monthly Downloads Total Downloads License


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

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

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.

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


You can install this package through Composer:

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


Send a message:


use Enqueue\Fs\FsConnectionFactory;

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


Consume a message:


use Enqueue\Fs\FsConnectionFactory;

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

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

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


Find out more here:

Compatible projects



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:

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

Compatible projects


Everyone is welcome to join and contribute.

The general workflow looks like this:

  1. Someone opens a discussion (GitHub issue) to suggest an interface
  2. Feedback is gathered
  3. The interface is added to a development branch
  4. We release alpha versions so that the interface can be experimented with
  5. Discussions and edits ensue until the interface is deemed stable by a general consensus
  6. A new minor version of the package is released

We try to not break BC by creating new interfaces instead of editing existing ones.

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


MIT license

You can’t perform that action at this time.