PHP code example of yuxiaobo / gzdata_sms_sdk

1. Go to this page and download the library: Download yuxiaobo/gzdata_sms_sdk 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/ */

    

yuxiaobo / gzdata_sms_sdk example snippets


$sms = new Sms($_ENV['ACCOUNT'], $_ENV['PASSWORD']);
list($success, $response) = $sms->send('183****014', '无需填入, 兼容jumdata语法', ['5678']);

if ($success == false) {
    // 短信发送失败
}

./vendor/bin/phpunit test/SmsTest.php