PHPackages                             tylercd100/monolog-mailgun - 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. tylercd100/monolog-mailgun

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

tylercd100/monolog-mailgun
==========================

A Monolog Handler for SMS messaging services such as Plivo and Twilio.

3.0.0(5y ago)3155.1k↓70.1%5[3 PRs](https://github.com/tylercd100/monolog-mailgun/pulls)1MITPHPPHP ^7.2|^8.0CI failing

Since Apr 26Pushed 5y ago2 watchersCompare

[ Source](https://github.com/tylercd100/monolog-mailgun)[ Packagist](https://packagist.org/packages/tylercd100/monolog-mailgun)[ Docs](https://github.com/tylercd100/monolog-mailgun)[ RSS](/packages/tylercd100-monolog-mailgun/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (1)

Monolog Mailgun Handler
=======================

[](#monolog-mailgun-handler)

[![Latest Version](https://camo.githubusercontent.com/5c8d46b6af317ad2a3a5d7cdfd1107a117c05c9c8e9e910760c8f283ea5f9080/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f74796c657263643130302f6d6f6e6f6c6f672d6d61696c67756e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/tylercd100/monolog-mailgun/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/0a5e457ec422eb1e883025071fde6b37b88615a64b536572154a1b424401e90b/68747470733a2f2f7472617669732d63692e6f72672f74796c657263643130302f6d6f6e6f6c6f672d6d61696c67756e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tylercd100/monolog-mailgun)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c0ee8f54a6fa95b63bcacfb7932e6e8cca625f4e66c5d9c2a785f5cdc990023c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f74796c657263643130302f6d6f6e6f6c6f672d6d61696c67756e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/tylercd100/monolog-mailgun/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/cd89eb550372b884b0bc03b459444bbd734ae55b926bfe1fc08ae129a5c8aaaa/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f74796c657263643130302f6d6f6e6f6c6f672d6d61696c67756e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/tylercd100/monolog-mailgun/?branch=master)[![Dependency Status](https://camo.githubusercontent.com/1c4ac926efb90f2924bb989040a5bf7eedb5476ed59563195a7d1ed8141ed7fb/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3536663332353263333536333065303032396462303138372f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/56f3252c35630e0029db0187)[![Total Downloads](https://camo.githubusercontent.com/5d570a4c56bba06a64b0d4d9176531db7bcf1208188320c97807461a45147d14/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74796c657263643130302f6d6f6e6f6c6f672d6d61696c67756e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tylercd100/monolog-mailgun)

A Monolog Handler for [Mailgun](http://www.mailgun.com)

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

[](#installation)

Install via [composer](https://getcomposer.org/) - In the terminal:

```
composer require tylercd100/monolog-mailgun
```

Usage
-----

[](#usage)

```
use Tylercd100\Monolog\Handler\MailgunHandler;

$to      = "to@test.com";
$from    = "from@test.com";
$subject = "Test Email!";
$token   = "1onfifaln234nfkdo02";
$domain  = "test.com";

$handler = new MailgunHandler($to, $subject, $from, $token, $domain);
$logger  = new Monolog\Logger('mailgun.example');
$logger->pushHandler($handler);
$logger->addCritical("Foo Bar!");
```

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 52.4% 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 ~841 days

Total

3

Last Release

2039d ago

Major Versions

1.0.0 → 2.0.02016-04-27

2.0.0 → 3.0.02020-12-03

PHP version history (2 changes)1.0.0PHP ^5.4|^7.0

3.0.0PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d0f17a08e8038aafdd451317206dda9429dfda2c7cbadb0c0796e25367108d5?d=identicon)[tylercd100](/maintainers/tylercd100)

---

Top Contributors

[![tylercd100](https://avatars.githubusercontent.com/u/4522226?v=4)](https://github.com/tylercd100 "tylercd100 (11 commits)")[![tortuetorche](https://avatars.githubusercontent.com/u/5038872?v=4)](https://github.com/tortuetorche "tortuetorche (6 commits)")[![robbielove](https://avatars.githubusercontent.com/u/13571547?v=4)](https://github.com/robbielove "robbielove (3 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

mailgunmonologtylercd100monolog handler

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tylercd100-monolog-mailgun/health.svg)

```
[![Health](https://phpackages.com/badges/tylercd100-monolog-mailgun/health.svg)](https://phpackages.com/packages/tylercd100-monolog-mailgun)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[illuminate/log

The Illuminate Log package.

6225.3M625](/packages/illuminate-log)[tylercd100/lern

LERN (Laravel Exception Recorder and Notifier) is a Laravel 5 package that will record exceptions into a database and will notify you via Email, Pushover or Slack.

439154.1k3](/packages/tylercd100-lern)[naoray/laravel-github-monolog

Log driver to store logs as github issues

10823.1k](/packages/naoray-laravel-github-monolog)[tylercd100/laravel-notify

12152.8k1](/packages/tylercd100-laravel-notify)

PHPackages © 2026

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