PHPackages                             yaro/log-envelope - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. yaro/log-envelope

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

yaro/log-envelope
=================

Laravel 5 email on error

1.10.0(2y ago)4147.0k11[2 issues](https://github.com/Cherry-Pie/LogEnvelope/issues)[2 PRs](https://github.com/Cherry-Pie/LogEnvelope/pulls)MITPHPPHP &gt;=5.4.0

Since Aug 18Pushed 2y ago3 watchersCompare

[ Source](https://github.com/Cherry-Pie/LogEnvelope)[ Packagist](https://packagist.org/packages/yaro/log-envelope)[ RSS](/packages/yaro-log-envelope/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (1)Versions (25)Used By (0)

Log Envelope
============

[](#log-envelope)

Laravel 5-9 package for logging errors to your e-mail(s), telegram, slack and database!

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/3d61513a1156228ad08923d7660dc9246d4e64fbfd0a45b47a2908c3c10b491e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4368657272792d5069652f4c6f67456e76656c6f70652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Cherry-Pie/LogEnvelope/?branch=master)[![Build Status](https://camo.githubusercontent.com/2a8905cebc34d94efa4a5fb2cc9f3f476e10884d823b4e7c20c959fd513ccfa5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4368657272792d5069652f4c6f67456e76656c6f70652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Cherry-Pie/LogEnvelope/build-status/master)[![Total Downloads](https://camo.githubusercontent.com/669c3e402899bd5a6223d69e1a730a51f657d09c005c597d1f434a0b3cb5ea3f/68747470733a2f2f706f7365722e707567782e6f72672f7961726f2f6c6f672d656e76656c6f70652f646f776e6c6f616473)](https://packagist.org/packages/yaro/log-envelope)

Installation
------------

[](#installation)

You can install the package through Composer.

```
composer require yaro/log-envelope
```

You must install this service provider. Make this the very first provider in list.

```
// config/app.php
'providers' => [
    // make this very first provider
    // so fatal exceptions can be catchable by envelope
    Yaro\LogEnvelope\ServiceProvider::class,
    //...
];
```

Then publish the config and migration file of the package using artisan.

```
php artisan vendor:publish --provider="Yaro\LogEnvelope\ServiceProvider"
```

Change your Exception Handler's (`/app/Exceptions/Handler.php` by default) `report` method like this:

```
//...
public function report(Exception $e)
{
    $res = parent::report($e);

    \LogEnvelope::send($e);
    //...

    return $res;
}
//...
```

Change config `yaro.log-envelope.php` for your needs. You can choose to log your errors to your database or send them to your email/telegram/slack. Emails are preferable, cuz they contains more debug information, such as traceback.

There is a `censored_fields` option which will change any fields value to `*****` if it is named in this array. For example by default it will change values for fields called `password` to `*****`.

Also there is `force_config` option, where you can define which configs to override for LogEnvelope execution. E.g., if you using some smtp for mail sending and queue it, you can change configs to send LogEnvelope emails immediately and not via smtp:

```
'force_config' => [
    'mail.driver' => 'sendmail',
    'queue.default' => 'sync',
],

```

TODO
----

[](#todo)

- highlight traceback in emails
- page with logs from database

Results
-------

[](#results)

Something like this with other info for debugging.

---

Email:

[![results](https://raw.githubusercontent.com/Cherry-Pie/LogEnvelope/master/envelope-email.png)](https://raw.githubusercontent.com/Cherry-Pie/LogEnvelope/master/envelope-email.png)

---

Slack:

[![results](https://raw.githubusercontent.com/Cherry-Pie/LogEnvelope/master/envelope-slack.jpg)](https://raw.githubusercontent.com/Cherry-Pie/LogEnvelope/master/envelope-slack.jpg)

---

Telegram:

[![results](https://raw.githubusercontent.com/Cherry-Pie/LogEnvelope/master/envelope-telegram.jpg)](https://raw.githubusercontent.com/Cherry-Pie/LogEnvelope/master/envelope-telegram.jpg)

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](https://github.com/Cherry-Pie/LogEnvelope/blob/master/LICENSE) for more information.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 62.1% 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 ~145 days

Recently: every ~257 days

Total

21

Last Release

1045d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/337e05205184d845261f639b74255dedc7c3e75f069a38e79aa8083e91cf5a90?d=identicon)[Cherry Pie](/maintainers/Cherry%20Pie)

---

Top Contributors

[![Cherry-Pie](https://avatars.githubusercontent.com/u/3027596?v=4)](https://github.com/Cherry-Pie "Cherry-Pie (36 commits)")[![MaxGiting](https://avatars.githubusercontent.com/u/9828591?v=4)](https://github.com/MaxGiting "MaxGiting (5 commits)")[![GC-Mark](https://avatars.githubusercontent.com/u/1477806?v=4)](https://github.com/GC-Mark "GC-Mark (3 commits)")[![JayBizzle](https://avatars.githubusercontent.com/u/340752?v=4)](https://github.com/JayBizzle "JayBizzle (3 commits)")[![Cannonb4ll](https://avatars.githubusercontent.com/u/3110750?v=4)](https://github.com/Cannonb4ll "Cannonb4ll (3 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (2 commits)")[![ryross](https://avatars.githubusercontent.com/u/152982?v=4)](https://github.com/ryross "ryross (2 commits)")[![tabacitu](https://avatars.githubusercontent.com/u/1032474?v=4)](https://github.com/tabacitu "tabacitu (1 commits)")[![oliveiraxavier](https://avatars.githubusercontent.com/u/7455063?v=4)](https://github.com/oliveiraxavier "oliveiraxavier (1 commits)")[![phuang07](https://avatars.githubusercontent.com/u/353542?v=4)](https://github.com/phuang07 "phuang07 (1 commits)")[![apiaget](https://avatars.githubusercontent.com/u/634083?v=4)](https://github.com/apiaget "apiaget (1 commits)")

---

Tags

laravelloggingloglaravelerrormail on error

### Embed Badge

![Health badge](/badges/yaro-log-envelope/health.svg)

```
[![Health](https://phpackages.com/badges/yaro-log-envelope/health.svg)](https://phpackages.com/packages/yaro-log-envelope)
```

###  Alternatives

[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.3k122.6M185](/packages/sentry-sentry-laravel)[larabug/larabug

Laravel 6.x/7.x/8.x/9.x/10.x/11.x/12.x/13.x bug notifier

299571.0k1](/packages/larabug-larabug)[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M152](/packages/spatie-laravel-health)[spatie/laravel-flare

Send Laravel errors to Flare

111.2M6](/packages/spatie-laravel-flare)[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(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、ZohoCliq、ZohoCliqWebHook、Zulip).

14844.4k1](/packages/guanguans-laravel-exception-notify)[kitloong/laravel-app-logger

Laravel log for your application

101.3M8](/packages/kitloong-laravel-app-logger)

PHPackages © 2026

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