Wilddog SMS SDK for PHP
composer require wilddog/sms
require_once PATH_TO_YOUR_PROJECT_ROOT_DIR . '/vendor/autoload.php';
use wilddog\sms\Settings;
use wilddog\sms\Sms;
$settings = new Settings('<YOUR_APP_ID>', '<YOUR_SMS_KEY>');
$sms = new Sms($settings);
$sms.sendCode($mobile, $templateId, Settings $settings, $var = array())
$response = $sms->sendCode('<PHONE_NUMBER>', '<YOUR_TEMPLATE_ID>', $settings);
echo $response->__toString();
$response = $sms->sendCode('<PHONE_NUMBER>', '<YOUR_TEMPLATE_ID>', $settings, array('Var1', 'Var2'));
echo $response->__toString();
sms.checkCode($mobile, $code)
$response = $sms->checkCode('<PHONE_NUMBER>', '<CODE>');
echo $response->__toString();
sms.sendNotify($mobiles = array(), $templateId, $params = array())
$response = $sms->sendNotify(array('<PHONE_NUMBER>'), '<YOUR_TEMPLATE_ID>', array('Var1', 'Var2'));
echo $response->__toString();
sms.checkStatus($rrid)
$response = $sms->checkStatus('<RRID>');
echo $response->__toString();
sms.getBalance()
$response = $sms->getBalance();
echo $response->__toString();