Download the PHP package balkar/laravel-priority-queue-manager without Composer

On this page you can find all versions of the php package balkar/laravel-priority-queue-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-priority-queue-manager

Laravel Priority Queue Manager

Latest Version on Packagist Total Downloads Tests License: MIT PHP Version Laravel

A Laravel package that standardises priority queue dispatching across your team — with a clean Facade API, a shared config file, and a built-in artisan command to monitor queue health.


Why This Exists

Laravel already supports named queues. You can do this:

That works fine for a solo developer. In a team it breaks down:

This package fixes all of that with a shared standard your whole team uses.


What It Does

Consistent dispatch API:

One config file for the whole team:

Queue health at a glance:

+----------+-------------+-----------+-------------+--------+

| Priority | Queued Jobs | Max Tries | Retry After | Status |

+----------+-------------+-----------+-------------+--------+

| CRITICAL | 0 | 5 | 30s | IDLE |

| HIGH | 4 | 4 | 60s | ACTIVE |

| NORMAL | 23 | 3 | 90s | ACTIVE |

| LOW | 150 | 2 | 300s | BUSY |

+----------+-------------+-----------+-------------+--------+


Requirements

Laravel PHP
10.x 8.2+
11.x 8.2+
12.x 8.2+
13.x 8.3+

Installation

Publish the config:


Configuration

config/priority-queue.php after publishing:

retry_after is in seconds. tries is the maximum number of attempts before a job fails.


Usage

Dispatching jobs

Under the hood this calls Laravel's native dispatch($job)->onQueue($priority) — no magic, just a consistent API on top of what Laravel already does.

Running workers

Start a single worker that respects priority order:

Laravel processes critical first. Only when it is empty does it move to high, and so on.

Production worker management

Use Supervisor to keep workers running. Example config:

Supervisor is one option — you can also use systemd, Docker, or your platform's native process manager. The package has no dependency on any specific process manager.


Monitoring

+----------+-------------+-----------+-------------+--------+

| Priority | Queued Jobs | Max Tries | Retry After | Status |

+----------+-------------+-----------+-------------+--------+

| CRITICAL | 0 | 5 | 30s | IDLE |

| HIGH | 4 | 4 | 60s | ACTIVE |

| NORMAL | 23 | 3 | 90s | ACTIVE |

| LOW | 150 | 2 | 300s | BUSY |

+----------+-------------+-----------+-------------+--------+

Status is based on current job count in the database queue table:

This command reads from the jobs table and works with the database queue driver out of the box. For Redis, SQS, or other drivers the count will show 0 — driver-specific monitoring support is on the roadmap.


Known Limitations

Starvation — strict priority ordering means low priority jobs can wait indefinitely if critical and high queues stay full. The monitoring command gives you visibility into this. Configurable max wait time with automatic job promotion is planned for v1.1.

Driver supportqueue:priority-status job counts currently only work with the database driver.

No automatic worker management — the package standardises dispatch and config. Starting and managing worker processes is your responsibility via Supervisor, systemd, or your deployment setup.


Real World Context

At my previous company we built a student grade calculation engine that processed recursive async jobs across thousands of students. When teachers triggered bulk mark updates, thousands of recalculation jobs would fill the queue and block time-sensitive jobs like OTP delivery.

The fix was named queues with strict priority ordering — this package came out of making that pattern reusable and consistent across the team.


Roadmap


Testing


Changelog

Please see CHANGELOG.md for recent changes.

Contributing

Pull requests are welcome. For major changes please open an issue first to discuss what you would like to change.

License

MIT. Please see LICENSE for more information.

Author

Balkar Singh

balkar.co.in GitHub LinkedIn


All versions of laravel-priority-queue-manager with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/queue Version ^10.0|^11.0|^12.0|^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package balkar/laravel-priority-queue-manager contains the following files

Loading the files please wait ...