cblink/laravel-bug-msg 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

cblink/laravel-bug-msg

Composer 安装命令:

composer require cblink/laravel-bug-msg

包简介

Package description here.

README 文档

README

.

Installing

# laravel7以上使用2.0版本
$ composer require cblink/laravel-bug-msg ^2.0 -vvv

# laravel5.5以上,7以下使用1.0版本
$ composer require cblink/laravel-bug-msg ^1.0 -vvv

Config

<?php
return [
    'notify' => [
        /*
         * 是否每次错误都通知(建议 false,否则可能会轰炸)
         */
        'every' => false,

        /*
         * 分钟单位,该区间同一错误只提醒一次
         */
        'interval' => 5,
    ],

    'cache' => [
        'prefix' => 'notice.exception.',
    ],

    // 配置信息
    'config' => [
        // 是否开启调试
        'debug' => false,
        // 通知地址的key
        'key' => '',
        // 通知地址的认证信息
        'token' => '',
    ],
];

Usage

<?php

use Cblink\BugMsg\ExceptionHelper;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;

class Handler extends ExceptionHandler{
    
    // ...

    /**
     * Report or log an exception.
     *
     * @param \Exception $exception
     *
     * @return void
     * @throws Exception
     */
    public function report(Exception $exception)
    {
        if ($this->shouldReport($exception)) {
       
            /* 添加这段代码即可 start */
            (new ExceptionHelper())
            /* @var array $config 引用至配置部分 */
            ->handle($exception, $config);
            /* end */
        }

        parent::report($exception);
    }
}

Contributing

You can contribute in one of three ways:

  1. File bug reports using the issue tracker.
  2. Answer questions or fix bugs on the issue tracker.
  3. Contribute new features or update the wiki.

The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.

License

MIT

cblink/laravel-bug-msg 适用场景与选型建议

cblink/laravel-bug-msg 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.27k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 07 月 16 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 cblink/laravel-bug-msg 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 cblink/laravel-bug-msg 我们能提供哪些服务?
定制开发 / 二次开发

基于 cblink/laravel-bug-msg 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-07-16