PHP code example of cnxiaoma / yuntongxun-sms

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

    

cnxiaoma / yuntongxun-sms example snippets


Hardywen\YuntongxunSms\YuntongxunSmsServiceProvider::class,

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

'Hardywen\YuntongxunSms\YuntongxunSmsServiceProvider',

'YuntongxunSms' => 'Hardywen\YuntongxunSms\Facade\YuntongxunSms',

YuntongxunSms::templateSMS('9635', array('param1','param2'), '138xxxxxx')

YuntongxunSms::voiceCode('123123','138xxxx')
config/app.php
config/yuntongxun.php
app/config/app.php
 php artisan config:publish hardywen/yuntongxun-sms