devture/sms-sender

Library that makes sending SMS messages through varios providers easy

Installs: 156

Dependents: 1

Stars: 5

Watchers: 2

Forks: 2

Language: PHP

1.1.1 2013-08-12 11:45 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();