All Projects → guanguans → laravel-exception-notify

guanguans / laravel-exception-notify

Licence: MIT license
Laravel 中异常监控报警通知(Bark、Chanify、钉钉群机器人、Discord、飞书群机器人、邮件、PushDeer、QQ 频道机器人、Server 酱、Slack、Telegram、企业微信群机器人、息知)。

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to laravel-exception-notify

notify
推送通知 sdk(Bark、Chanify、钉钉群机器人、Discord、邮件、飞书群机器人、Gitter、Google Chat、iGot、Logger、Mattermost、Now Push、PushBack、Push、PushDeer、PushPlus、QQ 频道机器人、Rocket Chat、Server 酱、Showdoc Push、Slack、Telegram、Webhook、企业微信群机器人、息知、Zulip)。
Stars: ✭ 335 (+544.23%)
Mutual labels:  notifier, bark, qq-bot, chanify, pushdeer
lostark-wait-notifier
🐤️ Lost Ark wait notifier
Stars: ✭ 38 (-26.92%)
Mutual labels:  notifier, notification
discord-notifier
Provides Discord integration for Symfony Notifier
Stars: ✭ 24 (-53.85%)
Mutual labels:  notifier, notification
notifyme
react-notification-timeline is a react based component helps in managing the notification in time-based manner.
Stars: ✭ 94 (+80.77%)
Mutual labels:  notifier, notification
lemon
Lemon – LED Monitor – is a $79.43 opensource alternative to LaMetric that supports GitHub-, IFTTT- and Zapier-webhooks and even integrates with Pushover!
Stars: ✭ 45 (-13.46%)
Mutual labels:  monitor, notification
react-notify
Tiny React's module that shows notifications.
Stars: ✭ 55 (+5.77%)
Mutual labels:  notification, notify
fake-sms-notifier
Fake SMS (as email during development) Notifier Bridge
Stars: ✭ 16 (-69.23%)
Mutual labels:  notifier, notification
jetson-monitor
🚨 Jetson is an HTTP monitoring service used to notify by various messaging platforms such as Slack and Telegram
Stars: ✭ 45 (-13.46%)
Mutual labels:  monitor, notification
Telegram Notifier
Provides Telegram integration for Symfony Notifier.
Stars: ✭ 30 (-42.31%)
Mutual labels:  notifier, notification
Notifier
Sends notifications via one or more channels (email, SMS, ...).
Stars: ✭ 346 (+565.38%)
Mutual labels:  notifier, notification
flasher
A powerful and flexible flash notifications system for PHP
Stars: ✭ 46 (-11.54%)
Mutual labels:  notification, notify
Monitor Table Change With Sqltabledependency
Get SQL Server notification on record table change
Stars: ✭ 459 (+782.69%)
Mutual labels:  monitor, notification
notice.js
💯 Javascript notification library
Stars: ✭ 25 (-51.92%)
Mutual labels:  notification, notify
Ignition
A beautiful error page for Laravel apps
Stars: ✭ 1,885 (+3525%)
Mutual labels:  exception, error
Apprise
Apprise - Push Notifications that work with just about every platform!
Stars: ✭ 4,307 (+8182.69%)
Mutual labels:  notifier, notify
Fileboy
fileboy,文件变更监听通知工具,使用 Go 编写。Fileboy, File Change Monitoring Notification Tool, written with Go.
Stars: ✭ 345 (+563.46%)
Mutual labels:  monitor, notification
github-release-notifier
Automatize tasks when a specific package got a new release - Github Release Notifier
Stars: ✭ 21 (-59.62%)
Mutual labels:  notifier, notification
redis-healthy
It retrieves metrics, periodically, from Redis (or sentinel) and send them to Logstash
Stars: ✭ 62 (+19.23%)
Mutual labels:  monitor
Sunset-hadith
Islamic app written with Kotlin, using KTOR + coroutines + flow + MVVM + Android Jetpack + Navigation component. Old version using RxJava + Retrofit + OKHttp
Stars: ✭ 26 (-50%)
Mutual labels:  notification
theonionbox
Dashboard to monitor Tor node operations
Stars: ✭ 116 (+123.08%)
Mutual labels:  monitor

laravel-exception-notify

usage

简体中文 | ENGLISH

Laravel 中异常监控报警通知(Bark、Chanify、钉钉群机器人、Discord、飞书群机器人、邮件、PushDeer、QQ 频道机器人、Server 酱、Slack、Telegram、企业微信群机器人、息知)。

Tests Check & fix styling codecov Latest Stable Version Total Downloads License

功能

  • 监控发送 laravel 应用异常
  • 支持多种通道(Bark、Chanify、钉钉群机器人、Discord、飞书群机器人、邮件、PushDeer、QQ 频道机器人、Server 酱、Slack、Telegram、企业微信群机器人、息知)
  • 支持扩展自定义通道
  • 支持自定义数据收集器
  • 支持自定义数据转换器
  • 支持通知速率限制(默认每分一次)

相关项目

环境要求

  • laravel >= 5.5

安装

$ composer require guanguans/laravel-exception-notify -vvv

配置

注册服务

laravel

$ php artisan vendor:publish --provider="Guanguans\\LaravelExceptionNotify\\ExceptionNotifyServiceProvider"

lumen

将以下代码段添加到 bootstrap/app.php 文件中的 Register Service Providers 部分下:

$app->register(\Guanguans\LaravelExceptionNotify\ExceptionNotifyServiceProvider::class);
$app->boot(\Guanguans\LaravelExceptionNotify\ExceptionNotifyServiceProvider::class);

申请通道 token 等信息

配置文件中配置 token 等信息

config/exception-notify.php

.env 文件中配置

EXCEPTION_NOTIFY_DEFAULT_CHANNEL=dingTalk
EXCEPTION_NOTIFY_DINGTALK_KEYWORD=keyword
EXCEPTION_NOTIFY_DINGTALK_TOKEN=c44fec1ddaa8a833156efb77b7865d62ae13775418030d94d
EXCEPTION_NOTIFY_DINGTALK_SECRET=SECc32bb7345c0f73da2b9786f0f7dd5083bd768a29b82

使用

app/Exceptions/Handler.phpreport 方法中添加

public function report(Exception $e)
{
    // 默认通道
    \ExceptionNotifier::reportIf($this->shouldReport($e), $e);
    // 指定通道
    \ExceptionNotifier::onChannel('dingTalk', 'mail')->reportIf($this->shouldReport($e), $e);

    parent::report($e);
}

通知结果

息知

扩展自定义通道

app/Providers/AppServiceProvider.phpboot 方法中添加

public function boot()
{
    // 扩展自定义通道
    \ExceptionNotifier::extend('YourChannel', function (\Illuminate\Contracts\Container\Container $container){
        // 返回 \Guanguans\LaravelExceptionNotify\Contracts\Channel 的实例          
    });
}

测试

$ composer test

变更日志

请参阅 CHANGELOG 获取最近有关更改的更多信息。

贡献指南

请参阅 CONTRIBUTING 有关详细信息。

安全漏洞

请查看我们的安全政策了解如何报告安全漏洞。

贡献者

鸣谢

协议

MIT 许可证(MIT)。有关更多信息,请参见协议文件

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].