PHPackages                             keruald/broker - 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. keruald/broker

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

keruald/broker
==============

Message broker abstraction layer

0.5.0(3y ago)0294BSD-2-ClausePHPPHP &gt;=8.1.0

Since Dec 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/keruald/broker)[ Packagist](https://packagist.org/packages/keruald/broker)[ RSS](/packages/keruald-broker/feed)WikiDiscussions main Synced 4w ago

READMEChangelogDependencies (3)Versions (10)Used By (0)

Keruald Broker
==============

[](#keruald-broker)

Abstraction library to use message brokers.

Current focus is to prepare a reference AMQP implementation.

Sample code
-----------

[](#sample-code)

You can initialize an instance of the class, then use the fluency pattern to cascade your instructions to connect to the server, parameter the target and then send message.

For example, to send a message to the RabbitMQ 'haiku' exchange point, with a specific routing key to allow consumers to see if they're interested by the message:

```
$broker = new AMQPBroker();
$broker
    ->connect()
    ->setExchangeTarget('haiku')
    ->routeTo('basho.oldpond')
    ->sendMessage('古池や蛙飛び込む水の音');

```

Add an implementation for another broker
----------------------------------------

[](#add-an-implementation-for-another-broker)

We're interested to solve the target problem. We wanted to initially offer both Exchange and Queue classes, but brokers treat them differently.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

Established project with proven stability

 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 ~332 days

Recently: every ~655 days

Total

9

Last Release

1202d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.6.0

0.5.0PHP &gt;=8.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/8fa275e3c93d0f423ef8b7c1a848e6e4ea325225ea268e5fcce744e8ce3dd43b?d=identicon)[dereckson](/maintainers/dereckson)

---

Top Contributors

[![dereckson](https://avatars.githubusercontent.com/u/135563?v=4)](https://github.com/dereckson "dereckson (24 commits)")

---

Tags

rabbitmqAMQPkerualdbroker

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/keruald-broker/health.svg)

```
[![Health](https://phpackages.com/badges/keruald-broker/health.svg)](https://phpackages.com/packages/keruald-broker)
```

###  Alternatives

[php-amqplib/rabbitmq-bundle

Integrates php-amqplib with Symfony &amp; RabbitMq. Formerly emag-tech-labs/rabbitmq-bundle, oldsound/rabbitmq-bundle.

1.2k20.7M68](/packages/php-amqplib-rabbitmq-bundle)[bschmitt/laravel-amqp

AMQP wrapper for Laravel and Lumen to publish and consume messages

2792.4M7](/packages/bschmitt-laravel-amqp)[php-amqplib/thumper

AMQP Tools

276211.9k8](/packages/php-amqplib-thumper)[videlalvaro/thumper

AMQP Tools

27683.4k3](/packages/videlalvaro-thumper)[mikemadisonweb/yii2-rabbitmq

Wrapper based on php-amqplib to incorporate messaging in your Yii2 application via RabbitMQ. Inspired by RabbitMqBundle for Symfony 2, really awesome package.

72269.0k1](/packages/mikemadisonweb-yii2-rabbitmq)[kdyby/rabbitmq

Integrates php-amqplib with RabbitMq and Nette Framework

27715.0k4](/packages/kdyby-rabbitmq)

PHPackages © 2026

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