PHP code example of hardywen / ucpaas-sms

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

    

hardywen / ucpaas-sms example snippets


'Hardywen\UcpaasSms\UcpaasSmsServiceProvider',

'UcpaasSms' =>'Hardywen\UcpaasSms\Facade\UcpaasSms',
 
artisan config:publish hardywen/ucpaas-sms

UcpaasSms::templateSMS('9635', '123456,3', '138xxxxxx')

UcpaasSms::voiceCode('123123','138xxxx')

Hardywen\UcpaasSms\UcpaasSmsServiceProvider::class,

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

UcpaasSms::templateSMS('9635', '123456,3', '138xxxxxx')

UcpaasSms::voiceCode('123123','138xxxx')
app/config/app.php
app/config/packages/hardywen/ucpaas-sms/config.php
config/app.php
app/config/packages/hardywen/ucpaas-sms/config.php