PHPackages                             jdavidbakr/laravel-sns-error-notification - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. jdavidbakr/laravel-sns-error-notification

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

jdavidbakr/laravel-sns-error-notification
=========================================

Sends a notification via SNS when there is an exception

1.1.1(9y ago)020.4kMITPHPPHP ~5.5|~7.0

Since Jun 21Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jdavidbakr/laravel-sns-error-notification)[ Packagist](https://packagist.org/packages/jdavidbakr/laravel-sns-error-notification)[ Docs](https://github.com/jdavidbakr/laravel-sns-error-notification)[ RSS](/packages/jdavidbakr-laravel-sns-error-notification/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)Dependencies (6)Versions (5)Used By (0)

LaravelSNSErrorNotification
===========================

[](#laravelsnserrornotification)

[![Latest Version on Packagist](https://camo.githubusercontent.com/96afa84b9d1f79523c55ba468d4d68c90d84b5d4971e9695d16e0635ee86a82f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a646176696462616b722f6c61726176656c2d736e732d6572726f722d6e6f74696669636174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jdavidbakr/laravel-sns-error-notification)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/ec18c12f2d8e2103245891d30d2ac90cadc0aa37d5eacc379fab8444720f70b8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a646176696462616b722f6c61726176656c2d736e732d6572726f722d6e6f74696669636174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jdavidbakr/laravel-sns-error-notification)

This package is a simple extension of the Laravel Exception Handler that sends a notification via AWS SNS whenever there is an error, with helpful information like the URL that was called and the stack trace. The notification is cached so that it only sends one notice per unique error message every 24 hours, and only fires if the application is not in debug mode (so you aren't innundated with error messages while working on your project).

You can also enable writing to a database table, with automatic purging after a certain timeframe.

Install
-------

[](#install)

Via Composer

```
$ composer require jdavidbakr/laravel-sns-error-notification
```

Add the service provider to your config/app.php file:

```
jdavidbakr\LaravelSNSErrorNotification\LaravelSNSErrorNotificationServiceProvider::class,

```

If you haven't already set up to use AWS, you will need to install the service provider:

```
Aws\Laravel\AwsServiceProvider::class

```

as well as the Facade in the 'aliases' array:

```
'AWS' => Aws\Laravel\AwsFacade::class,

```

Install the config file

```
php artisan vendor:publish

```

This inserts a config file at config/sns-error-notification.php. You must set the SNS topic and subject in there. Also note that you will need to configure the config/aws.php file as needed to give access to the SNS topic.

Install the migrations

```
php artisan migrate

```

This installs the tables needed to store the exceptions in the database.

Usage
-----

[](#usage)

To use, you will need to change the app/Exceptions/Handler.php class to extend \\jdavidbakr\\LaravelSNSErrorNotification\\ErrorNotifier instead of \\Illuminate\\Foundation\\Exceptions\\Handler. The easiest way is to remove this line:

```
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;

```

and replace it with this:

```
use jdavidbakr\LaravelSNSErrorNotification\ErrorNotifier as ExceptionHandler;

```

Testing
-------

[](#testing)

```
$ phpunit
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [J David Baker](https://github.com/jdavidbakr)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity61

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~91 days

Total

4

Last Release

3389d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25177?v=4)[J David Baker](/maintainers/jdavidbakr)[@jdavidbakr](https://github.com/jdavidbakr)

---

Tags

jdavidbakrlaravel-sns-error-notification

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/jdavidbakr-laravel-sns-error-notification/health.svg)

```
[![Health](https://phpackages.com/badges/jdavidbakr-laravel-sns-error-notification/health.svg)](https://phpackages.com/packages/jdavidbakr-laravel-sns-error-notification)
```

###  Alternatives

[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[jdavidbakr/mail-tracker

Logs and tracks all outgoing emails from Laravel

6231.3M1](/packages/jdavidbakr-mail-tracker)[illuminate/mail

The Illuminate Mail package.

5910.6M491](/packages/illuminate-mail)[illuminate/notifications

The Illuminate Notifications package.

513.1M1.1k](/packages/illuminate-notifications)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k20](/packages/fleetbase-core-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
