PHP code example of dtapps / think-qiniu-sms

1. Go to this page and download the library: Download dtapps/think-qiniu-sms library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

dtapps / think-qiniu-sms example snippets


composer 

composer 

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