PHPackages                             pierophp/laravel-queue-manager - 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. pierophp/laravel-queue-manager

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

pierophp/laravel-queue-manager
==============================

Laravel Queue Manager

v0.0.66(4y ago)182.4k4MITPHPPHP &gt;=7.0.0

Since Oct 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/pierophp/laravel-queue-manager)[ Packagist](https://packagist.org/packages/pierophp/laravel-queue-manager)[ RSS](/packages/pierophp-laravel-queue-manager/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (5)Versions (73)Used By (0)

Laravel Queue Manager
=====================

[](#laravel-queue-manager)

The Laravel Queue Manager, manage the queue process worker.

It uses [Supervisor](http://supervisord.org/) as Process Control System.

It also has a scheduler system built-in.

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

[](#installation)

### Composer

[](#composer)

```
$ composer require pierophp/laravel-queue-manager
```

### Publish

[](#publish)

```
$ php artisan vendor:publish --provider="LaravelQueueManager\Providers\LaravelQueueManagerServiceProvider"
```

### Running the migration

[](#running-the-migration)

If you have MySQL version before 5.7, change in the migration the field "schedule\_config" from "json" to "text".

```
$ php artisan migrate
```

### Adding the provider

[](#adding-the-provider)

You need to add the provider at the file config/app.php

```
LaravelQueueManager\Providers\LaravelQueueManagerServiceProvider::class,

```

Configuration
-------------

[](#configuration)

### Generating a job

[](#generating-a-job)

You need generate a class that extends LaravelQueueManager\\AbstractJob.

It's necessary to implement 2 methods:

MethodDescriptiongetName()The name of the jobexecute()The code of the job yourself### Dispatching a new job

[](#dispatching-a-new-job)

You need create a new instance of your job and call the dispatch() method.

Or use the CLI:

```
$ php artisan queue-manager:generate-queue queue_name
```

You can set optional params too:

```
$ php artisan queue-manager:generate-queue queue_name foo=test,bar=test
```

### Database

[](#database)

To the job work correctly, it is necessary generate a row in the queue\_config table.

FieldDescriptionnameIt's the same of the return of the getName() method.class\_nameThe full path with namespace of your job class (\\App\\Jobs\\TestJob)activeIf the job is active or notschedulableIf the job is schedulable or notschedule\_configA JSON config of the schedule. {"method" : "The schedule methods from laravel", "params": "The params to the schedule method (optional)", "props": \[ { "my\_job\_prop": 1 }, { "my\_job\_prop": 2 } \]}max\_attempsThe max attempts of the queuemax\_instancesThe max parallel instances of the queuetimeoutThe timeout of the queuedelayThe delay to the next execution (Not implemented yet)connectionThe connection name of the queue provider. (If null = default)aggregatorThe aggregator is used to group the queues in a reportconfigThe config is used to configure a dynamic functionality. Example json below##### Config field example

[](#config-field-example)

```
{
  "nextQueues":{
    "onError":[
      {
        "url":"url/test",
        "data":{
          "param":value
        },
        "name":"QUEUE_NAME",
        "method":"POST",
        "service":"SERVICE",
        "delay_seconds":1
      },
      {
        "url":"url/test",
        "data":{
          "param":value
        },
        "name":"QUEUE_NAME",
        "method":"GET",
        "service":"SERVICE",
        "delay_seconds":1
      }
    ],
    "onSuccess":[
      {
        "url":"url/test",
        "data":{
          "param":value
        },
        "name":"QUEUE_NAME",
        "method":"POST",
        "service":"SERVICE",
        "delay_seconds":1
      }
    ]
  }
}

```

### Config

[](#config)

At the queue\_manager.php config file you can configure:

FieldDescriptionDefaultartisan\_pathThe artisan pathbase\_path('artisan')log\_pathThe log pathstorage\_path('logs/worker.log')supervisor\_config\_fileThe supervisor config file/etc/supervisor/conf.d/laravel-queue.confsupervisor\_binThe supervisor bin path/usr/bin/supervisorctlsupervisor\_userThe supervisor userdockersupervisor\_update\_timeoutThe supervisor update timeout to gracefully stop the process when a configuration change600execute\_as\_apiEnable the queue as API modefalseapi\_urlURL to run the queue as API modefallback\_connectionsArray of fallback connections when first provider fails to dispatch\[\]### Showing all available jobs

[](#showing-all-available-jobs)

```
$ php artisan queue-manager:show-jobs
```

### Getting error events

[](#getting-error-events)

You need add to your AppServiceProvider and log as you like:

```
$this->app['events']->listen(\LaravelQueueManager\Events\ScheduleError::class, function(\LaravelQueueManager\Events\ScheduleError $error){
    // my code
});

$this->app['events']->listen(\LaravelQueueManager\Events\DispatchQueueError::class, function(\LaravelQueueManager\Events\DispatchQueueError $error){
    // my code
});
```

Deploying
---------

[](#deploying)

### Supervisor config

[](#supervisor-config)

You need configure a cron to run as root every minute to generate the supervisor config

```
$ php artisan queue-manager:generate-config
```

### Scheduler

[](#scheduler)

You need configure a cron to run every minute to generate the scheduler

```
$ php artisan schedule:run
```

### Queue Restart

[](#queue-restart)

Every time you change the PHP code, it's necessary to restart the queues. Put this at your deploy script.

```
$ php artisan queue:restart
```

API Mode
--------

[](#api-mode)

### Introduction

[](#introduction)

To easily scale your jobs machine, you can run the queues in API mode. An API is much more easy to apply auto-scale.

### Configuration

[](#configuration-1)

In your route configuration file add:

```
$api->post('queue/process', 'LaravelQueueManager\Http\Controllers\QueueController@process');
```

Edit in your "queue\_manager.php" config file the execute\_as\_api and api\_url options.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 82.6% 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 ~30 days

Recently: every ~174 days

Total

65

Last Release

1623d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/125132?v=4)[Piero](/maintainers/pierophp)[@pierophp](https://github.com/pierophp)

---

Top Contributors

[![pierophp](https://avatars.githubusercontent.com/u/125132?v=4)](https://github.com/pierophp "pierophp (95 commits)")[![luucasabreu](https://avatars.githubusercontent.com/u/5115149?v=4)](https://github.com/luucasabreu "luucasabreu (8 commits)")[![math3vz](https://avatars.githubusercontent.com/u/5503516?v=4)](https://github.com/math3vz "math3vz (8 commits)")[![kleberncto](https://avatars.githubusercontent.com/u/7166851?v=4)](https://github.com/kleberncto "kleberncto (4 commits)")

---

Tags

laravelqueuesupervisorqueue manager

### Embed Badge

![Health badge](/badges/pierophp-laravel-queue-manager/health.svg)

```
[![Health](https://phpackages.com/badges/pierophp-laravel-queue-manager/health.svg)](https://phpackages.com/packages/pierophp-laravel-queue-manager)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[laravel/scout

Laravel Scout provides a driver based solution to searching your Eloquent models.

1.7k53.0M586](/packages/laravel-scout)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k14.1M123](/packages/laravel-pulse)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9772.3M122](/packages/roots-acorn)[flat3/lodata

OData v4.01 Producer for Laravel

99346.1k](/packages/flat3-lodata)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45344.0k1](/packages/pressbooks-pressbooks)

PHPackages © 2026

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