PHPackages                             yocmen/sneaker - 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. yocmen/sneaker

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

yocmen/sneaker
==============

An easy way to send emails with stack trace whenever an exception occurs on the server for Laravel Applications.

v1.2(8y ago)294MITPHPPHP &gt;=5.4.0

Since Jun 20Pushed 7y ago1 watchersCompare

[ Source](https://github.com/yocmen/sneaker)[ Packagist](https://packagist.org/packages/yocmen/sneaker)[ RSS](/packages/yocmen-sneaker/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (7)Versions (4)Used By (0)

Laravel Exception Notifications
===============================

[](#laravel-exception-notifications)

An easy way to send emails with stack trace whenever an exception occurs on the server for Laravel Applications.

[![sneaker example image](sneaker.png?raw=true "Sneaker")](sneaker.png?raw=true)

Install
-------

[](#install)

### Install via composer

[](#install-via-composer)

```
$ composer require yocmen/sneaker ^1.0

```

### Configure Laravel

[](#configure-laravel)

Once installation operation is complete, simply add the service provider to your project's `config/app.php` file:

#### Service Provider

[](#service-provider)

```
Yocmen\Sneaker\SneakerServiceProvider::class,

```

### Add Sneaker's Exception Capturing

[](#add-sneakers-exception-capturing)

Add exception capturing to `app/Exceptions/Handler.php`:

```
public function report(Exception $exception)
{
    app('sneaker')->captureException($exception);

    parent::report($exception);
}
```

### Configuration File

[](#configuration-file)

Create the Sneaker configuration file with this command:

```
$ php artisan vendor:publish --provider="Yocmen\Sneaker\SneakerServiceProvider"
```

The config file will be published in `config/sneaker.php`

Following are the configuration attributes used for the sneaker.

#### silent

[](#silent)

The package comes with `'silent' => true,` configuration by default, since you probably don't want error emailing enabled on your development environment. Especially if you've set `'debug' => true,`.

```
'silent' => env('SNEAKER_SILENT', true),
```

For sending emails when an exception occurs set `SNEAKER_SILENT=false` in your `.env` file.

#### capture

[](#capture)

It contains the list of the exception types that should be captured. You can add your exceptions here for which you want to send error emails.

By default, the package has included `Symfony\Component\Debug\Exception\FatalErrorException::class`.

```
'capture' => [
    Symfony\Component\Debug\Exception\FatalErrorException::class,
],
```

You can also use `'*'` in the `$capture` array which will in turn captures every exception.

```
'capture' => [
    '*'
],
```

To use this feature you should add the following code in `app/Exceptions/Handler.php`:

```
public function report(Exception $exception)
{
    if ($this->shouldReport($exception)) {
        app('sneaker')->captureException($exception);
    }

    parent::report($exception);
}
```

#### to

[](#to)

This is the list of recipients of error emails.

```
'to' => [
        // 'hello@example.com',
    ],
```

#### ignored\_bots

[](#ignored_bots)

This is the list of bots for which we should NOT send error emails.

```
'ignored_bots' => [
    'googlebot',        // Googlebot
    'bingbot',          // Microsoft Bingbot
    'slurp',            // Yahoo! Slurp
    'ia_archiver',      // Alexa
],
```

Customize
---------

[](#customize)

If you need to customize the subject and body of email, run following command:

```
$ php artisan vendor:publish --provider="Yocmen\Sneaker\SneakerServiceProvider"
```

> Note - Don't run this command again if you have run it already.

Now the email's subject and body view are located in the `resources/views/vendor/sneaker` directory.

We have passed the thrown exception object `$exception` in the view which you can use to customize the view to fit your needs.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Amit Gupta](https://github.com/akaamitgupta)
- [All Contributors](../../contributors)

About Squareboat
----------------

[](#about-squareboat)

Squareboat is a startup focused, product development company based in Gurgaon, India. You'll find an overview of all our open source projects [on GitHub](https://github.com/squareboat).

License
=======

[](#license)

The MIT License. Please see [License File](LICENSE.md) for more information. Copyright © 2016 [SquareBoat](https://squareboat.com)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~130 days

Total

3

Last Release

2985d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e114ea99b526d4f80e750e0c9a8abfeb48fd3d923c44142b0459803675c3cf2e?d=identicon)[yocmen](/maintainers/yocmen)

---

Top Contributors

[![yocmen](https://avatars.githubusercontent.com/u/11200640?v=4)](https://github.com/yocmen "yocmen (29 commits)")

---

Tags

laravelemailexceptions

### Embed Badge

![Health badge](/badges/yocmen-sneaker/health.svg)

```
[![Health](https://phpackages.com/badges/yocmen-sneaker/health.svg)](https://phpackages.com/packages/yocmen-sneaker)
```

###  Alternatives

[squareboat/sneaker

An easy way to send emails with stack trace whenever an exception occurs on the server for Laravel Applications.

220191.2k](/packages/squareboat-sneaker)[fedeisas/laravel-mail-css-inliner

Inline the CSS of your HTML emails using Laravel

5974.6M3](/packages/fedeisas-laravel-mail-css-inliner)[propaganistas/laravel-disposable-email

Disposable email validator

5762.6M6](/packages/propaganistas-laravel-disposable-email)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)

PHPackages © 2026

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