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 to the notification channels(Dump、Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、Zulip).

License

NotificationsYou must be signed in to change notification settings

guanguans/laravel-exception-notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

usage

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

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

Related repositories

Requirement

  • PHP >= 8.0

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 information

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

EXCEPTION_NOTIFY_CHANNEL=stackEXCEPTION_NOTIFY_STACK_CHANNELS=log,slack,weWorkEXCEPTION_NOTIFY_SLACK_WEBHOOK=https://hooks.slack.com/services/TPU9A9/B038KNUC0GY/6pKH3vfa3mjlUPcgLSjzREXCEPTION_NOTIFY_WEWORK_TOKEN=73a3d5a3-ceff-4da8-bcf3-ff5891778

Usage

Test whether exception can be monitored and reported to notification channel

php artisan exception-notify:test --channel=dump --job-connection=syncphp artisan exception-notify:testphp artisan exception-notify:test -v

📸 Notification examples

🧐 details
discordslacktelegram
discordslacktelegram
larkmailweWork
larkmailweWork

Skip report

app/Providers/AppServiceProvider.php

<?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    ));}

Extend channel

app/Providers/AppServiceProvider.php

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

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 to the notification channels(Dump、Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、Zulip).

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

    Packages

    No packages published

    Contributors7

    Languages


    [8]ページ先頭

    ©2009-2025 Movatter.jp