PHP code example of wuliaowyh / alisms

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

    

wuliaowyh / alisms example snippets


/**
 * $phone 手机号
 * $phone 模板编号
 * $params 模板参数
 */
\Wuliaowyh\AliSms\Facades\AliSms::send($phone, $templateCode, $params);