PHP code example of varimax / aliyun-sms-sdk
1. Go to this page and download the library: Download varimax/aliyun-sms-sdk 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/ */
varimax / aliyun-sms-sdk example snippets
$sms->config(array(
'AccessKeyId'=> '{{AccessKeyId}}',
'AccessKeySecret'=> '{{AccessKeySecret}}',
'TemplateCode'=> '{{TemplateCode}}',
'SignName'=> '{{SignName}}'
));
$templateCode='SMS_2341135685';
$templateParam = array('code'=>'1234');
$sms->template($templateCode, $templateParam);