PHP code example of aminkt / sms-driver-rest-api
1. Go to this page and download the library: Download aminkt/sms-driver-rest-api 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/ */
aminkt / sms-driver-rest-api example snippets
$sms = new \aminkt\sms\Sms();
// Ingnore below line if you don't want change default driver.
$sms->setDrviver('\your\driver\Class');
$sms->setLoginData([`LOGIN_DATA`]);
$sms->sendSms([
'message'=>'Your test message.',
'numbers'=>['09120813856', '+989121234567']
]);