dtapps/think-qiniu-sms

ThinkPHP6七牛云短信扩展包

v6.0.0 2020-06-23 00:00 UTC

This package is auto-updated.

Last update: 2024-12-26 13:54:35 UTC


README

www.dtapp.net

ThinkPHP6七牛云短信扩展包

📦 ThinkPHP6七牛云短信扩展包

GitHub Org's stars

PHP Version godoc

License Latest Stable Version Latest Unstable Version Total Downloads

watchers stars forks issues branches releases tags license contributors GitHub release (latest SemVer) GitHub tag (latest SemVer) GitHub pull requests GitHub issues GitHub Sponsors GitHub code size in bytes GitHub language count GitHub search hit counter GitHub top language

Scrutinizer build (GitHub/Bitbucket) Scrutinizer coverage (GitHub/BitBucket) Scrutinizer code quality (GitHub/Bitbucket)

Travis (.com) branch

Codecov branch

gitlab (.com)

依赖环境

  1. PHP7.1 版本及以上

托管

开发版

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);