wapnen/estoresms

A php wrapper library for sms and voice calls using estoresms

Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 1

Open Issues: 0

Type:package

dev-master 2019-06-13 15:40 UTC

This package is auto-updated.

Last update: 2024-11-09 04:19:30 UTC


README

Overview

Send text and flash messages to one or more recipients

You can read more about the EstoreSMS API here

Getting Started

Set up an estoresms account and take note of your username and password.

Installation

composer require wapnen/estoresms

Enable the API

Make sure that your estoresms balance is not empty. Login to the dashboard to fund your user account.

Authentication

You will use your estoresms account username and password to authenticate with the API.

Usage

<?php
include "vendor/autoload.php";
use EstoreSMS\SMS;

$sms = new SMS('username', 'password');
$recipients = [081*********, 081*******];
$response = $sms->send($recipients, 'message', 'sender_id');
echo $response;
 ?>

Parameters

Optional parameters

DND numbers

<?php
include "vendor/autoload.php";
use EstoreSMS\SMS;

$sms = new SMS('username', 'password');
$recipients = [081*********, 081*******];
$response = $sms->send($recipients, 'message', 'sender_id', true);
echo $response;
 ?>

Flash SMS

<?php
include "vendor/autoload.php";
use EstoreSMS\SMS;

$sms = new SMS('username', 'password');
$recipients = [081*********, 081*******];
$response = $sms->send($recipients, 'message', 'sender_id', false, true);
echo $response;
?>

Response

Here is a list of possible return values