PHP code example of sofire / qsms

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

    

sofire / qsms example snippets


$sms->target('18800001111', '86');
// 短信正文模板编号 1000, 短信正文参数 ['123456', 30]
$response = $sms->template(1000, ['123456', 30]);