PHP code example of zenithsu / sms
1. Go to this page and download the library: Download zenithsu/sms 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/ */
zenithsu / sms example snippets
$config = new QiniuConfig("AK", "SK");
$sender = new SmsSender(SmsSender::QINIU, $config);
$result = $sender->sendTemplateSms('18969143231', '1541338019544449024', ['code' => mt_rand(100_000, 999_999)]);
var_dump($result);