Twilio

Twilio is one of the Global SMS providers

You will need an Twilio account to send SMS with their API. API credential are sent on .env file.

Let's get started with sending SMS

Parameters

All parameters are required

Parameter

Type

Description

$phoneNumber

string

The phone number of the recipient with country code

$message

string

The SMS message body

Usage

use Simcify\Sms;

Sms::twilio("+254720783834","Hey John, how are you doing?");

Response

Response will be a boolean. True or False

Last updated