PHP Classes

Voxox SMS: Send SMS multiple SMS messages at once using Voxox

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 372 All time: 6,777 This week: 190Up
Version License PHP version Categories
voxox-sms 1.1GNU General Publi...5.0PHP 5, Databases, Wireless and Mobile, W..., L...
Description 

Author

This class can send SMS multiple SMS messages at once using Voxox API.

It can send HTTP requests to the Voxox API to send one or more SMS messages to different recipient numbers.

The class can log the delivery activity either to a file or a database accessed using PDO.

It can also parse the results passed to a callback URL.

Picture of Christopher Cilley
Name: Christopher Cilley <contact>
Classes: 1 package by
Country: United States United States
Age: ???
All time rank: 3619478 in United States United States
Week rank: 314 Up41 in United States United States Up

Example

<?php
require_once 'class_VoxoxSMS.php';

$apiKey = '<YOUR VOXOX API KEY HERE>';

$smsVox = new VoxoxSMS ( $apiKey, false, true, false );

// Phone numbers are 11 digits : 1<area code><number>
$smsArray = array ();
$smsArray ['16195551212'] = 'test to 1213';
$smsArray ['16195551213'] = 'test to 1214';
$smsArray ['16195551214'] = 'test to 1215';
echo
"Send to array of phone numbers:\n";
print_r ( $smsArray );

list (
$succeed, $fail ) = $smsVox->sendSMSMulti ( $smsArray );
echo
"# succeed = $succeed\n";
echo
"# failed = $fail\n";

echo
"\n\nSend to single phone number:\n";
$testNumber = '16195551212';
$testMessage = 'Single number test';
list (
$success, $errMsg ) = $smsVox->sendSMS ( $testNumber, $testMessage );
if (
$success)
    echo
"succeed\n";
else
    echo
"failed\n";
?>


  Files folder image Files  
File Role Description
Plain text file class_VoxoxSMS.php Class Main class
Accessible without login Plain text file voxoxtest.php Example Test sending SMS

 Version Control Unique User Downloads Download Rankings  
 0%
Total:372
This week:0
All time:6,777
This week:190Up