rabbit-digital/bugtify-laravel
Composer 安装命令:
composer require rabbit-digital/bugtify-laravel
包简介
Error monitoring, reporting and bug notifier for Laravel
README 文档
README
What is Bugtify?
This package allows you to send error log to Discord via webhook. Allow you to track any error from your Laravel Application
Installation on Laravel
The Bugtify can be installed with Composer. Run this command:
composer require rabbit-digital/bugtify-laravel
Register our service provider in providers array in config/app.php before your AppServiceProvider::class
'providers' => [ // ... RabbitDigital\Bugtify\BugtifyServiceProvider::class, // ... ],
You just need to publish the config file of the package.
php artisan vendor:publish --provider="RabbitDigital\Bugtify\BugtifyServiceProvider" --tag=config
Configure your Discord Webhook URL in your .env file:
BUGTIFY_DISCORD_WEBHOOK=your-discord-webhook-here
If you need to avoid to send notification with the same error can configure with option below
BUGTIFY_LIMIT_ENABLED=true
Installation on Lumen
The Bugtify can be installed with Composer. Run this command:
composer require rabbit-digital/bugtify-laravel
Copy the config file (bugtify.php) to lumen config directory.
php -r "file_exists('config/') || mkdir('config/'); copy('vendor/rabbit-digital/bugtify-laravel/config/bugtify.php', 'config/bugtify.php');"
And adjust config file (config/bugtify.php) with your desired settings.
In bootstrap/app.php you will need to:
Uncomment this line if you still not did it.
$app->withFacades();
Register Bugtify service provider
$app->register(RabbitDigital\Bugtify\BugtifyServiceProvider::class);
Reporting unhandled exceptions
To ensure all unhandled exceptions are sent to Discord, set up a bugtify logging channel and add it to your logging stack in config/logging.php:
'channels' => [ 'stack' => [ 'driver' => 'stack', // Add bugtify to the stack: 'channels' => ['single', 'bugtify'], ], // ... // Create a bugtify logging channel: 'bugtify' => [ 'driver' => 'bugtify', ], ],
Laravel and Lumen version below 5.5
Laravel and Lumen version less than 5.5 not support Logger class. Need to manually add in App\Exception\Handler.php
public function report(Exception $e) { \RabbitDigital\Bugtify\Facades\Bugtify::notifyException($e); parent::report($e); }
Reporting handled exceptions
Reporting handled exceptions can be accomplished as follows:
try { // Add some error code here } catch (Exception $ex) { \RabbitDigital\Bugtify\Facades\Bugtify::notifyException($ex); }
License
The Bugtify for Laravel library is free software released under the MIT License. See LICENSE for details.
rabbit-digital/bugtify-laravel 适用场景与选型建议
rabbit-digital/bugtify-laravel 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 15.99k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2022 年 11 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「log」 「error」 「laravel」 「discord」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 rabbit-digital/bugtify-laravel 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 rabbit-digital/bugtify-laravel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 rabbit-digital/bugtify-laravel 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Stackdriver handler for Monolog (codeinternetapplications/monolog-stackdriver Fork).
Laravel 5.x.x library for integration Monolog Sentry
PHP Error Handler module that captures and displays all throwable errors in a given format, making debugging easier and more efficient
Pacote simplificado para persistência de logs
Collection of tools to use the full power of the Enyalius framework
Error and Exception override and observers.
统计信息
- 总下载量: 15.99k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 41
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2022-11-14