devture/sms-sender

Library that makes sending SMS messages through various providers easy

1.3 2018-10-17 09:19 UTC

README

A library for sending SMS messages through various service providers (gateways).

The currently supported gateways are:

Usage

Example:

<?php
use Devture\Component\SmsSender\Message;
use Devture\Component\SmsSender\Gateway\NexmoGateway;

$message = new Message('sender-name', 'receiver-phone-number', 'message text');

$gateway = new NexmoGateway('username', 'password');
$gateway->send($message);

echo 'Account Balance is: ', $gateway->getBalance();