1. Go to this page and download the library: Download maksimusyan/sms-sender 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/ */
$data = array(
'sender' => 'MYCOMPANY', // Sender ID. Maximum 11 characters
'text' => 'You have successfully made a purchase', // Message text
'phone' => '79008881155', // Number of recipient
'datetime' => '2018-05-01 00:20:00', // Sending at the set time
'sms_lifetime' => '0' //SMS life time (0 = maximum, 1, 6, 12, 24 hour)
);
$sms->sendSMS($data);
$currency = 'RUB'; // Available currencies: 'USD','GBP','UAH','RUB','EUR'
$balance = $sms->getBalance($currency);
$countries = $sms->getCountryCodes();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.