samirlama/laravel-queue-monitor
Composer 安装命令:
composer require samirlama/laravel-queue-monitor
包简介
A lightweight Laravel package for recording failed queue jobs and reviewing them from a web dashboard.
README 文档
README
A lightweight Laravel package for recording failed queue jobs and reviewing them from a simple web dashboard.
The package listens for Laravel's JobFailed event, stores the failed job connection, queue, payload, and exception message in a dedicated table, and provides a dashboard where failed jobs can be inspected and queued for retry.
Features
- Records failed queue jobs automatically.
- Stores failed job metadata in the
failed_jobs_monitortable. - Provides a dashboard at
/queue-monitorby default. - Allows failed jobs to be pushed back onto their original queue.
- Supports configurable route path and middleware.
- Auto-registers with Laravel package discovery.
Requirements
- PHP 8.1 or higher
- Laravel 10, 11, 12, or 13
- A configured Laravel queue connection
Installation
Install the package with Composer:
composer require samirlama/laravel-queue-monitor
Run the package migration:
php artisan migrate
Laravel package discovery will register the service provider automatically.
Configuration
Publish the configuration file if you want to customize the dashboard route or middleware:
php artisan vendor:publish --tag=queue-monitor-config
This creates config/queue-monitor.php:
return [ 'route_path' => 'queue-monitor', 'middleware' => ['web'], ];
Route Path
By default, the dashboard is available at:
/queue-monitor
Change route_path to mount the dashboard somewhere else:
'route_path' => 'admin/queue-monitor',
Middleware
The default middleware is web. For production applications, protect the dashboard with authentication or authorization middleware:
'middleware' => ['web', 'auth'],
Usage
Start your queue worker as usual:
php artisan queue:work
When a queued job fails, Laravel dispatches a JobFailed event. This package records that event in the failed_jobs_monitor table.
Visit the dashboard to review failed jobs:
http://your-app.test/queue-monitor
Each recorded failure shows:
- Queue name
- Exception message
- Failure timestamp
- Retry action
Retrying Jobs
The dashboard retry button pushes the original job payload back onto the recorded connection and queue.
After retrying a job, make sure a queue worker is running for that queue:
php artisan queue:work
Database Table
The package creates a failed_jobs_monitor table with these columns:
idconnectionqueuepayloadexceptioncreated_atupdated_at
This table is separate from Laravel's default failed_jobs table.
Local Development
After cloning the package, install dependencies:
composer install
If you are testing the package inside a Laravel application, add it as a local path repository in the application's composer.json:
{
"repositories": [
{
"type": "path",
"url": "../laravel-queue-monitor"
}
]
}
Then require it from the Laravel application:
composer require samirlama/laravel-queue-monitor:@dev
Security
The dashboard exposes failed job payloads and exception messages, which may contain sensitive data. Do not expose it publicly without authentication and authorization middleware.
License
Laravel Queue Monitor is open-sourced software licensed under the MIT license.
samirlama/laravel-queue-monitor 适用场景与选型建议
samirlama/laravel-queue-monitor 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 05 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「queue」 「monitoring」 「laravel」 「dashboard」 「failed-jobs」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 samirlama/laravel-queue-monitor 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 samirlama/laravel-queue-monitor 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 samirlama/laravel-queue-monitor 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Symfony bundle for chameleon-system/sanitycheck
PHP AMQP Binding Library
A Laravel package to monitor queue jobs.
SoftWax Health Check Bundle for Symfony framework
1Pilot client for Symfony
Statsd (Object Oriented) client library for PHP
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 35
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-01