tuowt / family-tree-sms
一家人短信SDK
1.0.3
2019-01-11 07:06 UTC
Requires
- php: >=5.6
- ext-fileinfo: *
- ext-openssl: *
- ext-simplexml: *
- guzzlehttp/guzzle: ^6.2
- monolog/monolog: ^1.22
- pimple/pimple: ^3.0
- symfony/cache: ^3.3|^4.0
- symfony/http-foundation: ^2.7|^3.0|^4.0
- symfony/psr-http-message-bridge: ^0.3|^1.0
Requires (Dev)
- phpunit/phpunit: ~5.7
This package is auto-updated.
Last update: 2024-04-11 20:04:04 UTC
README
family-tree短信接口接口
Composer 安装
composer require tuowt/family-tree-sms
Usage
服务端发起支付请求:
use FamilyTree\Factory; // $config = Configure::read('FamilyTree'); $config = [ // 用户登陆名 'appId' => 'xxxx', // 用户登录密码 'appSecret' => '', ]; $app = Factory::Sms($config); // 发起支付请求 $result = $app->sms->sendAuthCode($mobile);