PHPackages                             phpgears/cqrs-async-queue-interop - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. phpgears/cqrs-async-queue-interop

ActiveLibrary[Queues &amp; Workers](/categories/queues)

phpgears/cqrs-async-queue-interop
=================================

Queue-interop async decorator for CQRS command bus

0.3(6y ago)115MITPHPPHP ^7.1CI failing

Since Sep 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/phpgears/cqrs-async-queue-interop)[ Packagist](https://packagist.org/packages/phpgears/cqrs-async-queue-interop)[ Docs](https://github.com/phpgears/cqrs-async-queue-interop)[ RSS](/packages/phpgears-cqrs-async-queue-interop/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (16)Versions (7)Used By (0)

[![PHP version](https://camo.githubusercontent.com/d0b5687c6812c5d52d86a548e09db527eeb7860f82adbb677de00a36ddbed1b4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344372e312d3838393242462e7376673f7374796c653d666c61742d737175617265)](http://php.net)[![Latest Version](https://camo.githubusercontent.com/89c695a915b57aa27cd82de231973524cba5519f95b5d1bf9b7123d30084d98c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70687067656172732f637172732d6173796e632d71756575652d696e7465726f702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phpgears/cqrs-async-queue-interop)[![License](https://camo.githubusercontent.com/7e103f75afb32119daaa5ff7ddc9f6c32096331a538ccf168ea0ccc4a965f470/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f70687067656172732f637172732d6173796e632d71756575652d696e7465726f702e7376673f7374796c653d666c61742d737175617265)](https://github.com/phpgears/cqrs-async-queue-interop/blob/master/LICENSE)

[![Build Status](https://camo.githubusercontent.com/5c11c68cba8ded137d0827d95f007184f05c3b95950eaa9025aaaed098cfcf1b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636f6d2f70687067656172732f637172732d6173796e632d71756575652d696e7465726f702e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.com/github/phpgears/cqrs-async-queue-interop)[![Style Check](https://camo.githubusercontent.com/8c781095d03a2553400658adc6850fd86e0b28a3e8607e598212de6f76ca2cfe/68747470733a2f2f7374796c6563692e696f2f7265706f732f3135303930373930372f736869656c64)](https://styleci.io/repos/150907907)[![Code Quality](https://camo.githubusercontent.com/cb3cda5fc8066a61be283a244c9ed5a789f7dab3f2fef45ac5d885557fffcb28/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f70687067656172732f637172732d6173796e632d71756575652d696e7465726f702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/phpgears/cqrs-async-queue-interop)[![Code Coverage](https://camo.githubusercontent.com/58a464dcfc63cb1967500da4efca65ca9470ccc5849d59dd172809c988a22073/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f70687067656172732f637172732d6173796e632d71756575652d696e7465726f702e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/phpgears/cqrs-async-queue-interop)

[![Total Downloads](https://camo.githubusercontent.com/5a4332c637b49fad4257f4dd2c7463bfd3e01814ddae2415948cc19f47cf53cd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70687067656172732f637172732d6173796e632d71756575652d696e7465726f702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phpgears/cqrs-async-queue-interop/stats)[![Monthly Downloads](https://camo.githubusercontent.com/d033100eab43a9358b9e6b759fd6baddaaf41dcda599b692428089cd525c690c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f70687067656172732f637172732d6173796e632d71756575652d696e7465726f702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phpgears/cqrs-async-queue-interop/stats)

Queue-interop async CQRS
========================

[](#queue-interop-async-cqrs)

[Queue-interop](https://github.com/queue-interop/queue-interop) async decorator for CQRS command bus

Installation
------------

[](#installation)

### Composer

[](#composer)

```
composer require phpgears/cqrs-async-queue-interop

```

Usage
-----

[](#usage)

Require composer autoload file

```
require './vendor/autoload.php';
```

### Asynchronous Commands Bus

[](#asynchronous-commands-bus)

Please review [phpgears/cqrs-async](https://github.com/phpgears/cqrs-async) for more information on async command bus

```
use Gears\CQRS\Async\AsyncCommandBus;
use Gears\CQRS\Async\QueueInterop\QueueInteropCommandQueue;
use Gears\CQRS\Async\Serializer\JsonCommandSerializer;
use Gears\CQRS\Async\Discriminator\ParameterCommandDiscriminator;

/* @var \Gears\CQRS\CommandBus $commandBus */
/* @var \Interop\Queue\PsrContext $context */
/* @var \Interop\Queue\PsrDestination $destination */

$commandQueue = new QueueInteropCommandQueue(new JsonCommandSerializer(), $context, $destination);

$asyncCommandBus new AsyncCommandBus(
    $commandBus,
    $commandQueue,
    new ParameterCommandDiscriminator('async')
);

$asyncCommand = new CustomCommand(['async' => true]);

$asyncCommandBus->handle($asyncCommand);
```

There are some queue-interop implementations available such as [Enqueue](https://github.com/php-enqueue/enqueue) which supports an incredible number of message queues

Contributing
------------

[](#contributing)

Found a bug or have a feature request? [Please open a new issue](https://github.com/phpgears/cqrs-async-queue-interop/issues). Have a look at existing issues before.

See file [CONTRIBUTING.md](https://github.com/phpgears/cqrs-async-queue-interop/blob/master/CONTRIBUTING.md)

License
-------

[](#license)

See file [LICENSE](https://github.com/phpgears/cqrs-async-queue-interop/blob/master/LICENSE) included with the source code for a copy of the license terms.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~91 days

Total

5

Last Release

2463d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c50421f1ab4148354dc2dd5dcaba168656b17ea913b310d112deb39a6f73ca1?d=identicon)[juliangut](/maintainers/juliangut)

---

Top Contributors

[![juliangut](https://avatars.githubusercontent.com/u/1104131?v=4)](https://github.com/juliangut "juliangut (9 commits)")

---

Tags

asyncasynchronousquerycommandimmutablecqrsqueue-interop

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/phpgears-cqrs-async-queue-interop/health.svg)

```
[![Health](https://phpackages.com/badges/phpgears-cqrs-async-queue-interop/health.svg)](https://phpackages.com/packages/phpgears-cqrs-async-queue-interop)
```

###  Alternatives

[amphp/amp

A non-blocking concurrency framework for PHP applications.

4.4k130.2M407](/packages/amphp-amp)[revolt/event-loop

Rock-solid event loop for concurrent PHP applications.

92550.1M206](/packages/revolt-event-loop)[amphp/parallel

Parallel processing component for Amp.

85249.9M91](/packages/amphp-parallel)[amphp/sync

Non-blocking synchronization primitives for PHP based on Amp and Revolt.

19158.1M51](/packages/amphp-sync)[amphp/serialization

Serialization tools for IPC and data storage in PHP.

13656.4M20](/packages/amphp-serialization)[icicleio/icicle

Icicle is a PHP library for writing asynchronous code using synchronous coding techniques.

1.1k152.2k14](/packages/icicleio-icicle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
