delboy1978uk/sms-twilio

Twilio adapter for delboy1978uk/sms

v1.0.2 2021-07-03 09:20 UTC

This package is auto-updated.

Last update: 2024-11-09 23:28:23 UTC


README

A Twilio SMS provider adapter for delboy1978uk/sms

installation

Install via composer

composer require delboy1978uk/sms-twilio

usage

Instantiate the adapter and pass it into the SmsServiceconstructor.

use Bone\Sms\Adapter\Twilio;

$accountSid = 'XXXXX';
$authToken = 'XXXXX';
$fromNumber = '+3211122233';
$adapter = new Twilio($accountSid, $authToken, $fromNumber);
$service = new SmsService($adapter);