Package Data | |
---|---|
Maintainer Username: | flc1125 |
Package Create Date: | 2017-07-18 |
Package Last Update: | 2019-08-09 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-08 03:05:20 |
Package Statistics | |
---|---|
Total Downloads: | 80,012 |
Monthly Downloads: | 219 |
Daily Downloads: | 27 |
Total Stars: | 64 |
Total Watchers: | 4 |
Total Forks: | 13 |
Total Open Issues: | 0 |
composer require flc/dysms
<?php
use Flc\Dysms\Client;
use Flc\Dysms\Request\SendSms;
$config = [
'accessKeyId' => 'LTAIbVA2LRQ1tULr',
'accessKeySecret' => 'ocS48RUuyBPpQHsfoWokCuz8ZQbGxl',
];
$client = new Client($config);
$sendSms = new SendSms;
$sendSms->setPhoneNumbers('1500000000');
$sendSms->setSignName('叶子坑');
$sendSms->setTemplateCode('SMS_77670013');
$sendSms->setTemplateParam(['code' => rand(100000, 999999)]);
$sendSms->setOutId('demo');
print_r($client->execute($sendSms));