flc / dysms
阿里短信-适用Laravel、Yii、Thinkphp等任何PHP项目...
Installs: 80 624
Dependents: 5
Suggesters: 0
Security: 0
Stars: 64
Watchers: 4
Forks: 13
Open Issues: 0
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2024-12-15 02:10:28 UTC
README
安装
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));
支持
- 官方网址: https://www.aliyun.com/product/sms?spm=5176.8142029.388261.339.WL7atM
- 官方API文档: https://help.aliyun.com/document_detail/55451.html?spm=5176.doc55289.6.556.pMlBIe
- composer: https://getcomposer.org/
捐赠
如果你觉得本扩展对你有帮助,请捐赠以表支持,谢谢~~
License
- MIT
- Anti 996