vvinners / messenger
Collection of Email and SMS API
v2.0.0
2022-08-23 11:15 UTC
Requires
- sendgrid/sendgrid: ^7.3.0
README
What API included?
Currently, we only support SendGrid and Nexmo for basic function of sending messages.
Installation
composer require vvinners/messenger
Setup .env
NEXMO_API_KEY
NEXMO_API_SECRET
SENDGRID_API_KEY
MESSENGER_FROM_EMAIL
MESSENGER_FROM_NAME
Usage
use vvinners\Messenger; $to = [ "name" => $user->name, "email" => $user->email ]; Messenger::sendMail($to, $subject, $content); Messenger::sendSMS($phone_number, $content);