1. Go to this page and download the library: Download filbertmsaki/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/ */
bash
public function send_single_sms(){
$message= 'Test Message';
//Call the Next Sms Class
$sms = new NextSms();
//Send sms to single number
$phonenumber= '255**********';
$data= $sms->sendSingleSms( $phonenumber,$message);
return $data;
}
bash
public function send_single_sms(){
$message= 'Test Message';
//Call the Next Sms Class
$sms = new NextSms();
//Send sms to single number
$arraynumber= ["2557*********","255**********","255**********","255**********","255**********"];
$data= $sms->sendMultipleSms( $arraynumber,$message);
return $data;
}
bash
public function sms_balance(){
//Get the remein balance of the sms from the dashboard
$sms = new NextSms();
$delivery_report= $sms->getSmsBalance();
return $delivery_report;
}
bash
public function single_sms_delivery_report(){
//Get delivery report of single sms
$messageId = '34329702767301630304';
$sms = new NextSms();
$delivery_report= $sms->getSingleSmsDeliveryReport($messageId);
return $delivery_report;
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.