vvinners/messenger

Collection of Email and SMS API

1.0.5 2019-11-14 15:08 UTC

This package is auto-updated.

Last update: 2021-11-14 20:25:35 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);