定制 cceo-developer/catchr-sdk 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cceo-developer/catchr-sdk

最新稳定版本:v1.0.2

Composer 安装命令:

composer require cceo-developer/catchr-sdk

包简介

Global error catcher for Laravel apps (Catchr).

README 文档

README

Catchr (Laravel) — Error Reporting Package

Catchr is a Laravel package that intercepts exceptions, monitoring queue jobs and logs globally and reports them to one or more HTTP endpoints (webhooks/APIs). It includes sanitization of sensitive data, HTTP/Server/DB context, and deduplication (to prevent spam when the same error is repeated).

Features

  • Global Exception Capture: Intercepts all unhandled exceptions.
  • Queue Job Monitoring: Automatically tracks job processing, success, and failures.
  • Log Reporting: Forwards application logs to your configured endpoints.
  • Multi-endpoint Support: Send data to multiple URLs simultaneously.
  • Rich Payload:
    • Exception details (type, message, file, line, trace).
    • HTTP context (method, URL, parameters, sanitized headers, server).
    • DB context for QueryException (connection and SQL).
    • Authenticated user information.
  • Security & Privacy: Automatically redacts sensitive headers and keys (e.g., authorization, passwords, tokens).
  • Persistent Deduplication: Prevents notification storms by caching repeated errors within a configurable TTL.

Installation

You can install the package via composer:

composer require cceo-developer/catchr-sdk

You can publish the config file with:

php artisan vendor:publish --tag="catchr-config"

Configuration

Exceptions

Capture and report exceptions globally.

  • CATCHR_EXCEPTION_ENABLED: Enable/disable exception reporting (default: true).
  • CATCHR_EXCEPTION_ENDPOINTS: Comma-separated list of URLs to report exceptions.
  • CATCHR_EXCEPTION_DEDUPE_ENABLED: Enable/disable deduplication (default: true).

Queue Jobs

Monitor your background jobs lifecycle.

  • CATCHR_QUEUE_ENABLED: Enable/disable queue monitoring (default: true).
  • CATCHR_QUEUE_REPORT_PROCESSING: Report when a job starts (default: true).
  • CATCHR_QUEUE_REPORT_PROCESSED: Report when a job finishes successfully (default: true).
  • CATCHR_QUEUE_REPORT_FAILED: Report when a job fails (default: true).
  • CATCHR_QUEUE_ENDPOINTS: Comma-separated list of URLs for job reports.

Logs

Forward your application logs to external services.

  • CATCHR_LOG_ENABLED: Enable/disable log reporting (default: true).
  • CATCHR_LOG_ENDPOINTS: Comma-separated list of URLs for log reports.

Requirements

  • PHP: 8.2+
  • Laravel: 10 | 11 | 12

统计信息

  • 总下载量: 26
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2026-03-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固