Skip to content

Commit

Permalink
(fix) README - travis and scrutinizer badges are obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Mar 14, 2024
1 parent 980efff commit 5609405
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
[![All Contributors](https://img.shields.io/badge/all_contributors-6-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->

<a href="https://travis-ci.org/kevincobain2000/laravel-alert-notifications"><img src="https://travis-ci.org/kevincobain2000/laravel-alert-notifications.svg?branch=master" alt="Travis Build Status"></a>
<a href="https://scrutinizer-ci.com/g/kevincobain2000/laravel-alert-notifications"><img src="https://scrutinizer-ci.com/g/kevincobain2000/laravel-alert-notifications/badges/quality-score.png?b=master" alt="Quality Score"></a>
<a href="https://scrutinizer-ci.com/g/kevincobain2000/laravel-alert-notifications"><img src="https://scrutinizer-ci.com/g/kevincobain2000/laravel-alert-notifications/badges/build.png?b=master" alt="Build Status"></a>
<a href="https://scrutinizer-ci.com/g/kevincobain2000/laravel-alert-notifications"><img src="https://scrutinizer-ci.com/g/kevincobain2000/laravel-alert-notifications/badges/coverage.png?b=master" alt="Coverage Status"></a>

Send php exceptions to email, microsoft teams, slack.
Notifications are throttle enabled so devs don't get a lot of emails from one host (or all hosts if cache driver is shared)
Expand Down Expand Up @@ -82,15 +78,15 @@ ALERT_NOTIFICATION_CURL_PROXY=
### Usage

```php
new AlertDispatcher(
Exception $e
new AlertDispatcher(
Exception $e
[, array $dontAlertExceptions = []] // Exceptions that shouldn't trigger notifications
[, array $notificationLevelsMapping = []] // [Exception class => Notification level] mapping
[, array $exceptionContext = []] // Array of context data
)
```

In **app/Exceptions/Handler.php**. It is better to use a try catch to prevent loop.
In **app/Exceptions/Handler.php**. It is better to use a try catch to prevent loop.

```php
use Kevincobain2000\LaravelAlertNotifications\Dispatcher\AlertDispatcher;
Expand Down Expand Up @@ -145,7 +141,7 @@ class Handler extends ExceptionHandler
| | ``%ExceptionLevel%`` => ``current notification level`` |
| | ex. ``'subject' => 'Exception [%ExceptionType%] has ocurred``' | |
| mail.#level# | Configs for each notification level |
| | notification levels refer to those defined in ``\Psr\Log\LogLevel`` |
| | notification levels refer to those defined in ``\Psr\Log\LogLevel`` |
| mail.#level#.toAddress | (default mail.to_address), #level# notification recipient e-mail |
| mail.#level#.subject | #level# notification e-mail subject |
| microsoft_teams.enabled | (default true), false will not notify to teams |
Expand Down

0 comments on commit 5609405

Please sign in to comment.