crontinel/laravel
Composer 安装命令:
composer require crontinel/laravel
包简介
Laravel-native cron, queue & Horizon monitoring. Detects silent Horizon supervisor death, queue bottlenecks, and cron failures — things generic uptime monitors can't see.
README 文档
README
Background job and cron monitoring for Laravel. Monitors Horizon internals, queue depth, and cron health — things generic monitors can't see.
Cronitor tells you a job ran. Crontinel tells you your Horizon supervisor is paused.
What it monitors
| Monitor | What it sees |
|---|---|
| Horizon | Supervisor status per supervisor (not just "Horizon is running"), paused state, failed jobs per minute |
| Queues | Depth per queue, failed count, oldest job age — Redis and database drivers |
| Cron jobs | Every scheduled command run: exit code, duration, late detection |
Requirements
- PHP 8.2, 8.3, or 8.4
- Laravel 11, 12, or 13
Installation
composer require crontinel/laravel php artisan crontinel:install
That's it. Visit /crontinel in your browser.
crontinel:install publishes the config file and runs the migration for the crontinel_runs table.
Cron run tracking is automatic — Crontinel listens to Laravel's ScheduledTaskFinished and ScheduledTaskFailed events. No wrapping or modification of your scheduled commands needed.
CLI health check
# Table output (human-readable) php artisan crontinel:check # JSON output (for CI/CD integration) php artisan crontinel:check --format=json # Check without firing alerts php artisan crontinel:check --no-alerts
Exits with code 0 when all monitors are healthy, 1 if any alert is active. Use this in CI or monitoring pipelines.
Configuration
After install, edit config/crontinel.php:
return [ // Dashboard URL path (default: /crontinel) 'path' => env('CRONTINEL_PATH', 'crontinel'), // Dashboard middleware 'middleware' => ['web', 'auth'], // Connect to Crontinel SaaS for multi-app hosted dashboards (optional) 'saas_key' => env('CRONTINEL_API_KEY'), 'saas_url' => env('CRONTINEL_API_URL', 'https://app.crontinel.com'), 'horizon' => [ 'enabled' => true, 'supervisor_alert_after_seconds' => 60, 'failed_jobs_per_minute_threshold' => 5, 'connection' => 'horizon', // Redis connection name for Horizon ], 'queues' => [ 'enabled' => true, 'watch' => [], // empty = auto-discover 'depth_alert_threshold' => 1000, 'wait_time_alert_seconds' => 300, ], 'cron' => [ 'enabled' => true, 'late_alert_after_seconds' => 120, 'retain_days' => 30, ], 'alerts' => [ 'channel' => env('CRONTINEL_ALERT_CHANNEL'), // 'slack' or 'mail' 'mail' => ['to' => env('CRONTINEL_ALERT_EMAIL')], 'slack' => ['webhook_url' => env('CRONTINEL_SLACK_WEBHOOK')], ], ];
Environment variables
# Dashboard path (optional) CRONTINEL_PATH=crontinel # Alerts — set channel to 'slack' or 'mail' CRONTINEL_ALERT_CHANNEL=slack CRONTINEL_SLACK_WEBHOOK=https://hooks.slack.com/... CRONTINEL_ALERT_EMAIL=ops@yourcompany.com # SaaS reporting (optional) CRONTINEL_API_KEY=your-api-key
Alerts
Crontinel fires alerts when:
- Horizon is stopped or paused
- A supervisor process goes down
- Failed jobs per minute exceeds threshold
- Queue depth or oldest job age exceeds threshold
- A scheduled command exits with non-zero code
- A scheduled command is late (missed its expected run window)
Alerts auto-resolve and send a "resolved" notification when the issue clears.
Alert deduplication: The same alert won't fire more than once per 5 minutes for the same issue.
Not using Horizon?
Set horizon.enabled = false in config. Queue and cron monitoring work independently of Horizon.
Connecting to Crontinel SaaS
The OSS package works standalone. To get multi-app hosted dashboards, longer history, and team access, visit crontinel.com to join the early access list.
License
MIT — free forever. See LICENSE.
Built by Harun R Rayhan · crontinel.com
crontinel/laravel 适用场景与选型建议
crontinel/laravel 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 3 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 04 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「queue」 「cron」 「monitoring」 「laravel」 「supervisor」 「mcp」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 crontinel/laravel 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 crontinel/laravel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 crontinel/laravel 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Symfony bundle to monitor and execute commands
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
Scheduling extension for Yii2 framework
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 32
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-10