PHPackages                             mkelcik/trf-consumer-base - 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. mkelcik/trf-consumer-base

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

mkelcik/trf-consumer-base
=========================

Foundation for simple try-retry-fail MQ consumer

v0.1.4(6y ago)0677PHPPHP ^7.1.3

Since Mar 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/mkelcik/trf-consumer)[ Packagist](https://packagist.org/packages/mkelcik/trf-consumer-base)[ RSS](/packages/mkelcik-trf-consumer-base/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

Usage example
-------------

[](#usage-example)

```
$connection = new PhpAmqpLib\Connection\AMQPStreamConnection('192.168.0.115', 5672, 'test', 'test', 'testing');

$driver = new \TRFDrivers\RabbitMQ\Driver($connection);

$consumer = new TRFConsumer\Consumer($driver, 'my-consumer-tag', 5);

// consume 'Testing' queue
$consumer->consume("Testing", function (TRFConsumer\Interfaces\MQMessage $message) {

    // print msg content
    var_dump($message->body());

    //process msg ...

    //Exception happened, message will be send to Testing-retry queue to be processed later, after 5 unsuccessful attempts will be send to Testing-fail queue
    throw new \Exception("Process error, retry processing later");
});

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

Total

5

Last Release

2497d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f0ebeeb8fd2caf1936607a516b4a39ce80c7ed5d2e219baf3b341bc5ab0e6c0?d=identicon)[mkelcik](/maintainers/mkelcik)

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mkelcik-trf-consumer-base/health.svg)

```
[![Health](https://phpackages.com/badges/mkelcik-trf-consumer-base/health.svg)](https://phpackages.com/packages/mkelcik-trf-consumer-base)
```

###  Alternatives

[php-amqplib/rabbitmq-bundle

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

1.3k20.1M64](/packages/php-amqplib-rabbitmq-bundle)[bschmitt/laravel-amqp

AMQP wrapper for Laravel and Lumen to publish and consume messages

2752.3M7](/packages/bschmitt-laravel-amqp)[jwage/phpamqplib-messenger

Symfony messenger transport for the php-amqplib/php-amqplib library.

84149.7k1](/packages/jwage-phpamqplib-messenger)[pekkis/queue

Queue abstraction library

18129.9k2](/packages/pekkis-queue)[convenia/pigeon

3233.0k](/packages/convenia-pigeon)[fervo/deferred-event-bundle

Defer your events to another process (via FastCGI)

4393.5k](/packages/fervo-deferred-event-bundle)

PHPackages © 2026

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