eonx-com/easy-bugsnag
Composer 安装命令:
composer require eonx-com/easy-bugsnag
包简介
Ease integrating bugsnag in your PHP projects
README 文档
README
---eonx_docs--- title: Introduction weight: 0 ---eonx_docs---
Introduction
This EasyBugsnag package provides a simple drop-in implementation of Bugsnag in your favourite PHP frameworks or plain PHP app.
::: tip The only configuration required for the package is to set the Bugsnag Integration API Key for your project. See Configuration for more information. :::
Usage overview
Once installed in your PHP framework, this package will allow you to inject the Bugsnag client anywhere you like and start notifying Bugsnag about your errors and exceptions.
For example:
// src/Exception/Handler.php namespace App\Exception; use Bugsnag\Client; final class ExceptionHandler { /** * @var \Bugsnag\Client */ private $client; public function __construct(Client $client) { $this->client = $client; } public function report(\Throwable $throwable): void { // Notify Bugsnag of your throwable $this->client->notifyException($throwable); } }
Client factory
The core functionality of the EasyBugsnag package is to create a Bugsnag client instance and make it available to your application, so you can focus on notifying your errors/exceptions instead of the boilerplate Bugsnag setup. It uses a client factory to do this. For more information, see Client factory.
Configurators
The client factory allows you to set a collection of client configurators. Once the client has been instantiated, the client factory will loop through the configurators, providing them the client instance to be configured. See Client configurators for more information.
Session tracking
Bugsnag can track the number of sessions that happen in your application, which enables Bugsnag to provide stability scores for comparison across releases of your application. You can enable and configure session tracking for EasyBugsnag. See Session tracking for more information.
Worker information
For Symfony applications, you can include information about the worker as metadata in Bugsnag reports. See Worker information for more information.
AWS information
You can include information about the AWS ECS Fargate task as metadata in Bugsnag reports. See AWS information for more information.
SQL query logging
The EasyBugsnag package provides support for logging of SQL queries for Bugsnag. See SQL query logging for more information.
eonx-com/easy-bugsnag 适用场景与选型建议
eonx-com/easy-bugsnag 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 924.33k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2020 年 08 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 eonx-com/easy-bugsnag 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 eonx-com/easy-bugsnag 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 924.33k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 8
- 依赖项目数: 6
- 推荐数: 5
其他信息
- 授权协议: MIT
- 更新时间: 2020-08-27