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 3w 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

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

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

Unknown

Total

1

Last Release

2767d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/35540165?v=4)[edmur](/maintainers/edmur)[@Edmur](https://github.com/Edmur)

---

Top Contributors

[![rumd3x](https://avatars.githubusercontent.com/u/12579932?v=4)](https://github.com/rumd3x "rumd3x (37 commits)")

---

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

[laravel/framework

The Laravel Framework.

34.8k543.8M19.5k](/packages/laravel-framework)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M284](/packages/laravel-horizon)[statamic/cms

The Statamic CMS Core Package

4.8k3.6M932](/packages/statamic-cms)[illuminate/support

The Illuminate Support package.

630113.0M40.2k](/packages/illuminate-support)[team-reflex/discord-php

An unofficial API to interact with the voice and text service Discord.

1.1k420.9k26](/packages/team-reflex-discord-php)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54681.3k17](/packages/solspace-craft-freeform)

PHPackages © 2026

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