Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Monitor exception and report it to notification channels(Dump、Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、Zulip).

License

NotificationsYou must be signed in to change notification settings

laravel-shift/laravel-exception-notify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Monitor exception and report it to notification channels(Dump、Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、Zulip).

testscheck & fix stylingcodecovLatest Stable VersionGitHub release (with filter)Total DownloadsLicense

Features

  • Monitor exception and report it to notification channels
  • Support for extending customized channels
  • Support for notification rate limiting
  • Support for customized data pipe
  • Support for customized data collector

Related Links

Requirement

  • PHP >= 7.4

Installation

composer require guanguans/laravel-exception-notify --ansi -v

Configuration

Publish files(optional)

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

Apply for channel authentication and other information

  • Notify
  • Dump(For debugging exception messages)
  • Log
  • Mail

Configure channels in theconfig/exception-notify.php and.env file

# EXCEPTION_NOTIFY_DEFAULTS=dingTalk,lark,mail,slack,telegram,...EXCEPTION_NOTIFY_DEFAULTS=log,slack,weWorkEXCEPTION_NOTIFY_SLACK_WEBHOOK=https://hooks.slack.com/services/TPU9A9/B038KNUC0GY/6pKH3vfa3mjlUPcgLSjzREXCEPTION_NOTIFY_WEWORK_TOKEN=73a3d5a3-ceff-4da8-bcf3-ff5891778

Usage

Test for exception notify

php artisan exception-notify:test --ansi -v

Notification examples

discordlarkmail
discordlarkmail

Skip report

Modify theboot method in theapp/Providers/AppServiceProvider.php file

<?phpuseGuanguans\LaravelExceptionNotify\Facades\ExceptionNotify;useIlluminate\Support\Arr;publicfunctionboot():void{    ExceptionNotify::skipWhen(staticfn (\Throwable$throwable) => Arr::first(        [            \Symfony\Component\HttpKernel\Exception\HttpException::class,            \Illuminate\Http\Exceptions\HttpResponseException::class,        ],staticfn (string$exception):bool =>$throwableinstanceof$exception    ));}

Custom channel

Modify theboot method in theapp/Providers/AppServiceProvider.php file

<?phpuseGuanguans\LaravelExceptionNotify\Contracts\Channel;useGuanguans\LaravelExceptionNotify\Facades\ExceptionNotify;useIlluminate\Container\Container;publicfunctionboot():void{    ExceptionNotify::extend('YourChannelName',function (Container$container):Channel {return'Instance of the `\Guanguans\LaravelExceptionNotify\Contracts\Channel`.';    });}

Testing

composertest

Changelog

Please seeCHANGELOG for more information on what has changed recently.

Contributing

Please seeCONTRIBUTING for details.

Security Vulnerabilities

Please reviewour security policy on how to report security vulnerabilities.

Credits

Thanks

License

The MIT License (MIT). Please seeLicense File for more information.

About

Monitor exception and report it to notification channels(Dump、Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、Zulip).

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP100.0%

[8]ページ先頭

©2009-2025 Movatter.jp