dtapps / think-qiniu-sms
ThinkPHP6七牛云短信扩展包
v6.0.0
2020-06-23 00:00 UTC
Requires
- php: >=7.1
- ext-json: *
- topthink/framework: ^6.0
README
ThinkPHP6七牛云短信扩展包
📦 ThinkPHP6七牛云短信扩展包
依赖环境
- PHP7.1 版本及以上
托管
- 国外仓库地址:https://github.com/dtapps/think-qiniu-sms
- 国内仓库地址:https://gitee.com/dtapps/think-qiniu-sms
- Packagist 地址:https://packagist.org/packages/dtapps/think-qiniu-sms
开发版
composer require dtapps/think-qiniu-sms ^6.x-dev -vvv
稳定版
composer require dtapps/think-qiniu-sms ^6.0.* -vvv
更新
composer update dtapps/think-qiniu-sms -vvv
删除
composer remove dtapps/think-qiniu-sms -vvv
服务使用示例
use dtapps\qiniu\sms\SmsService; list($ret, $err) = SmsService::instance() ->setParam([ "template_id" => "", "mobiles" => [""], "parameters" => [ "code" => "" ], ]) ->accessKey("") ->secretKey("") ->toArray(); var_dump($ret); var_dump($err);