vvinners/messenger

Collection of Email and SMS API

v2.0.0 2022-08-23 11:15 UTC

This package is auto-updated.

Last update: 2023-01-23 12:07:23 UTC


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