PHP code example of objui / phpsend
1. Go to this page and download the library: Download objui/phpsend 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/ */
objui / phpsend example snippets
use objui\phpsend\Send;
$config = [
'SignName' => '签名',
'TemplateCode' => '模板编码',
'AccessKeyID' => '阿里后台获取AccessKeyID',
'AccessKeySecret' => '阿里后台获取AccessKeySecret'
];
$obj = new Send($config);
$data = [
'phone' => '手机号',
'code' => '验证码'
];
$result = $obj->send($data);
var_dump($result);