PHPackages                             peroxovy/laravel-mail-logging - 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. peroxovy/laravel-mail-logging

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

peroxovy/laravel-mail-logging
=============================

Package which allows to send logs to e-mail.

v0.0.5(1y ago)07MITPHPPHP &gt;=7.4

Since Jan 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/peroxovy/laravel-mail-logging)[ Packagist](https://packagist.org/packages/peroxovy/laravel-mail-logging)[ RSS](/packages/peroxovy-laravel-mail-logging/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (8)Used By (0)

This package provides possibility to send an exception to desired e-mail addresses, notifying the administrator about any problems.

---

Installation:

`composer require peroxovy/laravel-mail-logging`

---

Publish config:

```
php artisan vendor:publish --provider="Peroxovy\LaravelMailLogging\Providers\MailLoggingServiceProvider"

```

---

Add the following lines to your `.env`:

```
MAIL_LOG_FROM={email address from}
MAIL_LOG_TO={email addresses divided by "," }
MAIL_LOG_SUBJECT={email subject}
MAIL_LOG_MEMORY_USAGE=true/false
MAIL_LOG_MEMORY_PEAK=true/false
MAIL_LOG_WEB=true/false
MAIL_LOG_GIT=true/false

```

---

Modify `channels` section inside your `config/logging.php` by adding the driver:

```
'mail' => [
    'driver'    => 'custom',
    'via' => \Peroxovy\LaravelMailLogging\MailLogger::class,
    'from' => env('MAIL_LOG_FROM', 'no-reply@example.com'),
    'to' => explode(',', env('MAIL_LOG_TO', 'admin@example.com')),
    'level' => env('MAIL_LOG_LEVEL', 'error'),
    'subject' => env('MAIL_LOG_SUBJECT', 'This is a subject of a Log'),
    'processors' => [
        'memory_usage' => env('MAIL_LOG_MEMORY_USAGE', true),
        'memory_peak' => env('MAIL_LOG_MEMORY_PEAK', true),
        'web' => env('MAIL_LOG_WEB', true),
        'git' => env('MAIL_LOG_GIT', true),
    ],
],
```

Activate the package by modifying your default log channel:

```
'stack' => [
        'driver' => 'stack',
        'channels' => ['daily', 'mail'],
        'ignore_exceptions' => false,
    ],
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance42

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

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

Total

7

Last Release

466d ago

PHP version history (2 changes)v0.0.2-alphaPHP &gt;7.0

v0.0.3-alphaPHP &gt;=7.4

### Community

Maintainers

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

---

Top Contributors

[![peroxovy](https://avatars.githubusercontent.com/u/62743726?v=4)](https://github.com/peroxovy "peroxovy (2 commits)")

### Embed Badge

![Health badge](/badges/peroxovy-laravel-mail-logging/health.svg)

```
[![Health](https://phpackages.com/badges/peroxovy-laravel-mail-logging/health.svg)](https://phpackages.com/packages/peroxovy-laravel-mail-logging)
```

###  Alternatives

[s-ichikawa/laravel-sendgrid-driver

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

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2021.9M4](/packages/laravel-notification-channels-apn)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[illuminate/mail

The Illuminate Mail package.

5910.1M391](/packages/illuminate-mail)[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)

PHPackages © 2026

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