PHP code example of silentlun / yii2-alisms
1. Go to this page and download the library: Download silentlun/yii2-alisms 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/ */
silentlun / yii2-alisms example snippets
use silentlun\alisms\AliSms;
$sendsms = new AliSms($accessKeyId, $accessKeySecret);
$response = $sendsms->SendSms($signName, $templateCode, $phoneNumbers, $data);
if ($response->Code == 'OK') {
return true;
} else {
return false;
}
php composer.phar