1. Go to this page and download the library: Download wslibs/sendmsg 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/ */
wslibs / sendmsg example snippets
use msg\SendMsg;
SendMsg::setSign('您的项目唯一码');
use msg\SendMsg;
/**
*用户手机号
*/
SendMsg::sendCodeMsg('17796908132');
use msg\SendMsg;
/**
*用户手机号
*用户填写的验证码
*/
SendMsg::checkCode('177****8132','679478');
use msg\SendMsg;
/**
*用户手机号
*要使用的模板类型
*规定类型数组数组 模板所需的变量 顺序必须严格按照模板中*号的顺序排列
*/
SendMsg::sendTemMsg('177****8132','xx',[]));
use msg\SendMsg;
/**
*用户手机号
*要发送的短信内容
*/
SendMsg::sendOtherMsg('177****8132','xxxxxxxxx');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.