PHP code example of zjutsxj / alisms

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

    

zjutsxj / alisms example snippets



return [
    'security' => false, // 是否启用https
    'host' => 'dysmsapi.aliyuncs.com', // 服务器

    'access_key' => '',
    'access_secret' => '',

    'cn_sign_name' => '', // 国内 短信签名
    'cn_temp_code' => '', // 国内 短信模板Code

    'en_sign_name' => '', // 国际 短信签名
    'en_temp_code' => '', // 国际 短信模板Code
];