devture/sms-sender

Library that makes sending SMS messages through various providers easy

1.5.1 2020-10-04 21:13 UTC

This package is auto-updated.

Last update: 2024-11-05 06:20:56 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();