PHPackages                             jaydeep/laravel-queue-monitor - 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. jaydeep/laravel-queue-monitor

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

jaydeep/laravel-queue-monitor
=============================

Monitor your Laravel queues — track pending, running, completed, and failed jobs from an Artisan command or a live web dashboard.

1.0.0(1mo ago)211MITPHPPHP ^7.4|^8.0|^8.1|^8.2|^8.3|^8.4

Since Jul 10Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/JaydeepGadhiya/laravel-queue-monitor)[ Packagist](https://packagist.org/packages/jaydeep/laravel-queue-monitor)[ RSS](/packages/jaydeep-laravel-queue-monitor/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (6)Versions (2)Used By (0)

Laravel Queue Monitor
=====================

[](#laravel-queue-monitor)

Monitor your Laravel queues at a glance. Laravel Queue Monitor records the full lifecycle of every queued job and shows you **pending**, **running**, **completed**, and **failed** jobs — from an Artisan command or a live web dashboard.

Laravel ships with `failed_jobs` (failed) and a `jobs` table (pending, database driver only), but it never stores *completed* jobs. This package fills that gap by subscribing to Laravel's queue events and persisting each job's lifecycle to a dedicated `queue_monitor` table — so it works with **any** queue driver (database, Redis, SQS, …).

Screenshots
-----------

[](#screenshots)

The live dashboard with stat cards and the recent-jobs table.

**Queued (pending) jobs:**

[![Queue Monitor dashboard showing queued jobs](art/queued.png)](art/queued.png)

**Completed &amp; failed jobs:**

[![Queue Monitor dashboard showing completed and failed jobs](art/complete.png)](art/complete.png)

Requirements
------------

[](#requirements)

- PHP 7.4 – 8.4
- Laravel 8 – 12

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

[](#installation)

### From Packagist

[](#from-packagist)

```
composer require jaydeep/laravel-queue-monitor
```

### Local development (path repository)

[](#local-development-path-repository)

If you are working on the package from a local checkout, add a path repository to your application's `composer.json` before requiring it:

```
"repositories": [
    {
        "type": "path",
        "url": "./laravel-queue-monitor",
        "options": { "symlink": true }
    }
]
```

```
composer require jaydeep/laravel-queue-monitor:^1.0
```

### Publish and migrate

[](#publish-and-migrate)

The service provider is auto-discovered. Publish and run the migration:

```
php artisan vendor:publish --tag=queue-monitor-migrations
php artisan migrate
```

Optionally publish the config and views:

```
php artisan vendor:publish --tag=queue-monitor-config
php artisan vendor:publish --tag=queue-monitor-views
```

Usage
-----

[](#usage)

### Artisan command

[](#artisan-command)

```
php artisan queue-monitor:show
```

```
Queue Monitor
+---------+---------+-----------+--------+-------+
| Pending | Running | Completed | Failed | Total |
+---------+---------+-----------+--------+-------+
| 3       | 1       | 128       | 2      | 134   |
+---------+---------+-----------+--------+-------+

```

Options:

OptionDescription`--json`Output the full snapshot as JSON`--limit=N`Number of recent jobs to list`--prune`Delete records older than the configured retention hours`--json` returns a machine-readable snapshot:

```
{
    "counts": {
        "pending": 3, "queued": 2, "running": 1,
        "completed": 128, "failed": 2, "total": 134
    },
    "recent": [
        {
            "id": 134, "name": "App\\Jobs\\SendInvoice", "queue": "default",
            "connection": "redis", "status": "completed", "attempts": 1,
            "duration_ms": 412, "queued_at": "2026-07-10 09:15:01",
            "started_at": "2026-07-10 09:15:02", "finished_at": "2026-07-10 09:15:02",
            "exception": null
        }
    ],
    "generated_at": "2026-07-10 09:20:00"
}
```

### Web dashboard

[](#web-dashboard)

Visit **`/queue-monitor`** in your browser for a live, auto-refreshing, responsive **Bootstrap 5** dashboard with stat cards and a **paginated** recent jobs table (Prev / Next). It polls `/queue-monitor/stats` on the interval set in config; the stat cards always reflect global totals while the table is paged.

The stats endpoint accepts pagination query parameters:

```
GET /queue-monitor/stats?page=2&per_page=15

```

Response shape:

```
{
    "counts": { "pending": 3, "running": 1, "completed": 128, "failed": 2, "total": 134 },
    "recent": [ /* current page of jobs */ ],
    "pagination": { "current_page": 2, "per_page": 15, "total": 134, "last_page": 9, "from": 16, "to": 30 },
    "generated_at": "2026-07-10 09:20:00"
}
```

> **Security:** the dashboard uses the `web` middleware group by default. Before exposing it in production, add authentication/authorization middleware in `config/queue-monitor.php` (`route.middleware`), e.g. `['web', 'auth']`.

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

[](#configuration)

`config/queue-monitor.php`:

KeyDefaultDescription`enabled``true`Master switch for lifecycle recording`table``queue_monitor`Monitor table name`connection``null`DB connection for the table (null = default)`route.enabled``true`Enable the web dashboard routes`route.prefix``queue-monitor`URL prefix for the dashboard`route.middleware``['web']`Middleware applied to the dashboard routes`route.refresh``5`Dashboard auto-refresh interval (seconds)`recent_limit``25`Recent jobs shown in the console command`per_page``15`Jobs per page on the web dashboard`prune_after_hours``72`Retention window used by `--prune` (null = keep)Each key is also driven by an environment variable — set `QUEUE_MONITOR_ENABLED=false`to switch recording off without touching config, or `QUEUE_MONITOR_ROUTE_ENABLED=false`to disable the dashboard routes.

How it works
------------

[](#how-it-works)

The package registers a subscriber for Laravel's queue events:

EventRecorded status`JobQueued``queued``JobProcessing``running``JobProcessed``completed``JobFailed``failed`Records are correlated by job id across events. All monitor writes are wrapped in a guard, so a monitoring error can never interrupt the job being processed.

### `queue_monitor` table

[](#queue_monitor-table)

ColumnNotes`id`Primary key`job_id`Driver job id (used to correlate events)`name`Resolved job class name`connection`, `queue`Where the job ran`status``queued` / `running` / `completed` / `failed``attempts`Attempt count at last update`queued_at`, `started_at`, `finished_at`Lifecycle timestamps`duration_ms`Processing time in milliseconds`exception`Full exception string for failed jobs`created_at`, `updated_at`Eloquent timestampsQuerying in code
----------------

[](#querying-in-code)

```
use Jaydeep\QueueMonitor\Models\MonitoredJob;

MonitoredJob::failed()->latest()->take(10)->get();
MonitoredJob::completed()->count();
MonitoredJob::pending()->get(); // queued + running
```

Testing
-------

[](#testing)

```
composer install
./vendor/bin/phpunit
```

License
-------

[](#license)

MIT © Jaydeep Gadhiya

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance90

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

49d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b9e410b11aa391f9cf6562aac3a4105798ade1f2312912139c1d96bfd28fcd91?d=identicon)[JaydeepGadhiya](/maintainers/JaydeepGadhiya)

---

Top Contributors

[![JaydeepGadhiya](https://avatars.githubusercontent.com/u/86125530?v=4)](https://github.com/JaydeepGadhiya "JaydeepGadhiya (2 commits)")

---

Tags

laravelqueuedashboardjobsmonitorfailed jobsqueue monitor

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jaydeep-laravel-queue-monitor/health.svg)

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

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M342](/packages/laravel-ai)[illuminate/queue

The Illuminate Queue package.

20433.0M1.9k](/packages/illuminate-queue)[anousss007/vigilance

A driver-agnostic control center for Laravel queues, jobs, commands and the scheduler. Monitor what ran (with parameters), see failures, and dispatch jobs or run artisan commands manually from a self-contained dashboard.

1949.9k](/packages/anousss007-vigilance)[laravel/pulse

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

1.7k16.3M159](/packages/laravel-pulse)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.0k](/packages/forjedio-inertia-table)[fomvasss/laravel-ai-tasks

AI task orchestrator for Laravel: routing, queue, audit, budget, webhooks

381.6k1](/packages/fomvasss-laravel-ai-tasks)

PHPackages © 2026

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