1. Go to this page and download the library: Download sirolad/route-sms-php 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/ */
sirolad / route-sms-php example snippets
use Sirolad\RouteSMS;
$sms = new RouteSMS($username, $password);
$result = $sms->send($sender, $recipient, $message, $type=0, $dlr=1);
return $result; //[{"status":"1701","recipient":"2348037XXXXXX","messageId":"fbf2f6bc-b708-4895-867b-3418cf62031d"}]
for Bulk sms it returns
[{"status":"1701","recipient":"2348037690966","messageId":"fbf2f6bc-b708-4895-867b-3418cf62031d"},{"status":"1702","recipient":"2348037690966","messageId":"fbf2f6bc-b708-4895-867b-3418cf62031d"},{"status":"1703","recipient":"2348037690966","messageId":"fbf2f6bc-b708-4895-867b-3418cf62031d"}]
composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.