PHP code example of dpodium / sms-api
1. Go to this page and download the library: Download dpodium/sms-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/ */
dpodium / sms-api example snippets
$config = []; //Configuration array, see \dpodium\smsapi\components\SmsManager for more information
$sms = new \dpodium\smsapi\components\SmsManager();
$sms->config = $config;
$sms->test_mode = false;
$countryId = '60';
$contactNo = '123456789';
$sms->setPhone($countryId, $contactNo);
$sms->sendSms('Hello world!');