PHP code example of luke / uc-sdk
1. Go to this page and download the library: Download luke/uc-sdk 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/ */
luke / uc-sdk example snippets
$uc = new \Luke\Uc\Application([
'base_url' => 'http://127.0.0.1:8001',
'app_id' => 'test',
'secret' => 'test'
]);
// 发送短信验证码
$response = $uc->sms->sendCode('10000000000', 'register');