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