PHPackages                             rumd3x/php-queues - 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. rumd3x/php-queues

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

rumd3x/php-queues
=================

A simple driver for managing queues in php.

1.0.0(7y ago)014MITPHPPHP &gt;=7.0

Since Dec 2Pushed 7y agoCompare

[ Source](https://github.com/rumd3x/php-queues)[ Packagist](https://packagist.org/packages/rumd3x/php-queues)[ RSS](/packages/rumd3x-php-queues/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

php-queues
==========

[](#php-queues)

A nice and easy to use PHP utility for handling queues and script executing without overlapping.

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

[](#installation)

To install via composer just run

```
  composer require rumd3x/php-queues
```

Usage
-----

[](#usage)

### Adding a Queue

[](#adding-a-queue)

There are three ways of adding a script to the execution queue.

The first one is to pass a full path to a php script to be executed:

```
use Rumd3x\Queues\Queue;
$queue = new Queue(Queue::ACTION_RUN_FILE);
$queue->setAction('/var/www/test.php')->pushTo('example_queue');
```

The other two you should pass the full namespace of a PHP class.

The ACTION\_RUN\_STATIC action type will try to call the run method on the class statically:

```
use Rumd3x\Queues\Queue;
$queue = new Queue(Queue::ACTION_RUN_STATIC);
$queue->setAction("\\App\\Synchronizer")->pushTo('sync');
// This is equal to calling \App\Synchronizer::run();
```

The ACTION\_RUN\_INSTANCE action type will try to call the run method on the class after instantiating it:

```
use Rumd3x\Queues\Queue;
$queue = new Queue(Queue::ACTION_RUN_INSTANCE);
$queue->setAction("\\App\\Synchronizer")->pushTo('sync');
// This is equal to doing
// $sync = new \App\Synchronizer;
// $sync->run();
```

### Running the Queues

[](#running-the-queues)

You should add the code below to a php script and run it with no timeout

```
use Rumd3x\Queues\QueueManager;
$manager = QueueManager::getInstance();
while (true) {
    $manager->runAll();
}
```

Or you could also make multiple executors for each of your queues so they run in parallel.

```
use Rumd3x\Queues\QueueManager;
$manager = QueueManager::getInstance();
while (true) {
    $manager->run('example_queue');
}
```

### Managing queues

[](#managing-queues)

You also can check yourself the current state of the queues during execution time.

```
use Rumd3x\Queues\QueueManager;
use Rumd3x\Queues\Queue;

$manager = QueueManager::getInstance();

$queue = new Queue(Queue::ACTION_RUN_FILE);
$queue->setAction('/var/www/test.php');

$manager->isQueued($queue); // returns true or false
$manager->isRunning($queue); // returns true or false
$manager->isQueueFree('sync'); // returns true or false
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity56

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

Unknown

Total

1

Last Release

2720d ago

### Community

Maintainers

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

---

Tags

composermanagerphpqueue

### Embed Badge

![Health badge](/badges/rumd3x-php-queues/health.svg)

```
[![Health](https://phpackages.com/badges/rumd3x-php-queues/health.svg)](https://phpackages.com/packages/rumd3x-php-queues)
```

###  Alternatives

[a5hleyrich/wp-queue

WordPress job queues

18021.5k1](/packages/a5hleyrich-wp-queue)[deliciousbrains/wp-queue

WordPress job queues

1807.4k1](/packages/deliciousbrains-wp-queue)[daison/laravel-horizon-cluster

A modified laravel/horizon with cluster support

1682.9k](/packages/daison-laravel-horizon-cluster)[tochka-developers/queue-promises

Promises for Laravel queue jobs

1912.3k](/packages/tochka-developers-queue-promises)[goodway/laravel-nats

Nats jetstream queue driver with client for Laravel

304.8k](/packages/goodway-laravel-nats)

PHPackages © 2026

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