Package Data | |
---|---|
Maintainer Username: | flc1125 |
Package Create Date: | 2017-07-18 |
Package Last Update: | 2024-12-15 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-03-30 15:05:10 |
Package Statistics | |
---|---|
Total Downloads: | 81,660 |
Monthly Downloads: | 352 |
Daily Downloads: | 5 |
Total Stars: | 65 |
Total Watchers: | 3 |
Total Forks: | 13 |
Total Open Issues: | 1 |
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));