1. Go to this page and download the library: Download kreative/sendmode library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kreative / sendmode example snippets
// Instantiate the class
$sms = new Sendmode($username, $password, $senderid);
// Send SMS
$result = $sms->send($phonenumber, $message);
// API response is returned as a SimpleXML object in $result.
$username=''; // Your Sendmode Username.
$password=''; // Your Sendmode Password.
$senderid=''; // Sender ID SMS that is displayed to recipients.
$format='json|array'; // Optional return format. Default is SimpleXML object.
// Instantiate the class
$sms = new Sendmode($username, $password, $senderid, $format);
// Instantiate the class
$sms = new Sendmode($username, $password, $senderid);
// Send a single SMS
$phonenumber=''; // Phone number in the correct format.
$message=''; // Message to send.
$customerid=''; // Optional message UID used to track delivery reports.
$result = $sms->send($phonenumber, $message, $customerid);
// API response is returned as a SimpleXML object in $result.
// Instantiate the class
$sms = new Sendmode($username, $password, $senderid);
// Send Scheduled SMS
$phonenumber=''; // Phone number in the correct format.
$message=''; // Message to send.
$customerid=''; // Optional message UID used to track delivery reports.
$date=''; // in d/m/Y e.g. Feb 1st 2016 = 01/02/2016.
$time=''; // in H:i e.g. 1:15PM = 13:15.
$result = $sms->send($phonenumber, $message, $customerid, $date, $time);
// API response is returned as a SimpleXML object in $result.
// Instantiate the class
$sms = new Sendmode($username, $password, $senderid);
// Send Scheduled SMS
$phonenumbers=array(); // Array of Phone numbers in the correct format.
$message=''; // Message to send.
$result = $sms->sendbatch($phonenumber, $message);
// API response is returned as a SimpleXML object in $result.
// Instantiate the class
$sms = new Sendmode($username, $password, $senderid);
// Send Scheduled SMS to multiple recipients.
$phonenumbers=array(); // Array of Phone numbers in the correct format.
$message=''; // Message to send.
$date=''; // in d/m/Y e.g. Feb 1st 2016 = 01/02/2016.
$time=''; // in H:i e.g. 1:15PM = 13:15.
$result = $sms->sendbatch($phonenumber, $message, $customerid, $date, $time);
// API response is returned as a SimpleXML object in $result.
// Instantiate the class
$sms = new Sendmode($username, $password, $senderid);
$customerid=''; // Your UID Customer ID used in the original send request.
$result = $sms->getdeliveryreport($customerid);
// API response is returned as a SimpleXML object in $result.
// Instantiate the class
$sms = new Sendmode($username, $password, $senderid);
$result = $sms->getbalance();
// API response is returned as a SimpleXML object in $result.
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.