tylercd100 / monolog-mailgun
A Monolog Handler for SMS messaging services such as Plivo and Twilio.
Installs: 151 414
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 5
Open Issues: 3
Requires
- php: ^7.2|^8.0
- monolog/monolog: ^2.0
Requires (Dev)
- phpunit/phpunit: ^8.2.3|^9.0
This package is auto-updated.
Last update: 2024-11-29 04:52:18 UTC
README
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!");