- Notifications
You must be signed in to change notification settings - Fork0
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
laravel-shift/laravel-exception-notify
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
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).
- 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
- PHP >= 7.4
composer require guanguans/laravel-exception-notify --ansi -v
php artisan vendor:publish --provider="Guanguans\\LaravelExceptionNotify\\ExceptionNotifyServiceProvider" --ansi -v- Notify
- Dump(For debugging exception messages)
- Log
# 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
php artisan exception-notify:test --ansi -v
| discord | lark | |
|---|---|---|
![]() | ![]() | ![]() |
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 ));}
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`.'; });}
composertestPlease seeCHANGELOG for more information on what has changed recently.
Please seeCONTRIBUTING for details.
Please reviewour security policy on how to report security vulnerabilities.
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
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Languages
- PHP100.0%


