PHP Classes

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

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 373 All time: 6,779 This week: 455Up
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: 3624478 in United States United States
Week rank: 158 Up19 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 (2)  
File Role Description
Plain text file class_VoxoxSMS.php Class Main class
Accessible without login Plain text file voxoxtest.php Example Test sending SMS

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:373
This week:0
All time:6,779
This week:455Up