PHPackages                             geggleto/slimq - 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. geggleto/slimq

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

geggleto/slimq
==============

SlimQ Enables You to push jobs to background workers

1.0.3(5y ago)912.8k1[3 issues](https://github.com/geggleto/slim-queue/issues)MITPHPPHP &gt;=7.4

Since Sep 11Pushed 5y ago3 watchersCompare

[ Source](https://github.com/geggleto/slim-queue)[ Packagist](https://packagist.org/packages/geggleto/slimq)[ RSS](/packages/geggleto-slimq/feed)WikiDiscussions master Synced 1mo ago

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

SimpleQueue
===========

[](#simplequeue)

Library to provide developers easy to use Serialize/Hydration over AMQP protocol.

### Dependencies

[](#dependencies)

You will need to have Rabbit MQ running; you can do it via docker like this

`docker run -d --hostname myrabbit --name myrabbit -p 15672:15672 -p 5672:5672 rabbitmq:3.8.11-management`

### See it in action

[](#see-it-in-action)

- Run the producer script - `php cli/producer.php`
- Run the consumer script - `php cli/consumer.php`

*If you want to see it in realtime*

- Use the RabbitMQ Admin panel at `http://localhost:15672`
    - Username `guest`
    - Password `quest`

### Why dead-letters?

[](#why-dead-letters)

If your application nacks a message it will flow to the dead-letter queue for fault tolerance.

Usage / Design considerations
=============================

[](#usage--design-considerations)

### 1. Serialized objects

[](#1-serialized-objects)

```
class MyObject extends \SimpleQueue\Messaging\AbstractAmqpObject {
    protected static string $routingKey = 'MyQueue.Cool';

    public function getApplicationId(): ?string
    {
        return 'sf-internal-web';
    }
}
```

The only requirement is that you MUST provide a routing key. The constructor of the concrete class accepts an array as a payload. You may use this to serialize to scalar values any object / parameters you need to send to a background worker. An example would be an Event in your system.

```
class MyHandler implements \SimpleQueue\Messaging\MessageHandler {

    public function handle(\SimpleQueue\Messaging\AmqpObjectInterface $object)
    {
        var_dump($object->getPayload());
    }
}
```

The `$object->getPayload()` is whatever your system put into the constructor as long as it was filled with scalar values or could be jsonSerialized. In your Handler you can do whatever you need to for your requirements. This could be running a background task, or executing an event.

### 2. Dead-Letter Queues

[](#2-dead-letter-queues)

By default the Config Factory will generate DLX/DLQ for you and bind them. This is recommended to allow for fault tolerance.

### Support

[](#support)

Find me on twitter @geggleto

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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 ~255 days

Recently: every ~305 days

Total

6

Last Release

1887d ago

Major Versions

0.1 → 1.0.02021-02-02

PHP version history (2 changes)0.0.1PHP &gt;=5.5.0

1.0.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f941aecd52e3f8ac94dbe9b714801c7adc767acc32644d3ee6a4efeded84c5e?d=identicon)[geggleto](/maintainers/geggleto)

---

Top Contributors

[![geggleto](https://avatars.githubusercontent.com/u/4027602?v=4)](https://github.com/geggleto "geggleto (12 commits)")[![l0gicgate](https://avatars.githubusercontent.com/u/6510935?v=4)](https://github.com/l0gicgate "l0gicgate (2 commits)")

---

Tags

phprabbitmqrabbitmq-queuequeuejobworker

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/geggleto-slimq/health.svg)

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

###  Alternatives

[clue/mq-react

Mini Queue, the lightweight in-memory message queue to concurrently do many (but not too many) things at once, built on top of ReactPHP

144691.7k4](/packages/clue-mq-react)[tarantool/queue

PHP bindings for Tarantool Queue.

64136.2k4](/packages/tarantool-queue)[apinstein/jqjobs

Async job manager for PHP.

3220.2k](/packages/apinstein-jqjobs)

PHPackages © 2026

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