1. Go to this page and download the library: Download epmnzava/nextsms 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/ */
epmnzava / nextsms example snippets
use Epmnzava\Nextsms;
public function send_sms_to_one_destination(){
$sms=new Nextsms("https://messaging-service.co.tz", "Storewid", "3434");
$response=$sms->sendSms("hellow world", "STOREWID", "255679079774");
}
public function send_sms_to_multiple_destination(){
$sms=new Nextsms("https://messaging-service.co.tz", "Storewid", "3434");
$response=$sms->send_sms_mutipledestination("hellow world", "STOREWID", ["255679079774","255768172016"]);
}
//getting all delivery reports
public function getAllDeliveryReports(){
$sms=new Nextsms("https://messaging-service.co.tz", "Storewid", "3434");
$response=$sms->getAllDeliveryReports();
}
//getting single message delivery report
public function getSingleMessageDeliveryReport(){
$messageId="28089492984101631440";
$sms=new Nextsms("https://messaging-service.co.tz", "Storewid", "3434");
$reponse=$sms->getMessageDeliveryReport($messageId);
}
//get your sms balance
public function getBalance(){
$sms=new Nextsms("https://messaging-service.co.tz", "Storewid", "3434");
$reponse=$sms->getSmsBalance();
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.