PHP code example of tuowt / family-tree-sms
1. Go to this page and download the library: Download tuowt/family-tree-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/ */
tuowt / family-tree-sms example snippets
use FamilyTree\Factory;
// $config = Configure::read('FamilyTree');
$config = [
// 用户登陆名
'appId' => 'xxxx',
// 用户登录密码
'appSecret' => '',
];
$app = Factory::Sms($config);
// 发起支付请求
$result = $app->sms->sendAuthCode($mobile);