tylercd100/monolog-mailgun

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

3.0.0 2020-12-03 21:14 UTC

This package is auto-updated.

Last update: 2024-10-29 04:42:02 UTC


README

Latest Version Software License Build Status Scrutinizer Code Quality Code Coverage Dependency Status Total Downloads

A Monolog Handler for Mailgun

Installation

Install via composer - In the terminal:

composer require tylercd100/monolog-mailgun

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!");