PHP code example of cali / yuntongxun-sms

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

    

cali / yuntongxun-sms example snippets


Cali\YuntongxunSms\YuntongxunSmsServiceProvider::class,

'SMS' => Cali\YuntongxunSms\Facade\YuntongxunSms::class,
 
php artisan vendor:publish

SMS::sendTemplateMessage($templateId, ['param1','param2'], $phone_number})

SMS::voiceVerify('123123','138xxxx')
config/app.php