1. Go to this page and download the library: Download liujinyong/ali-api 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/ */
liujinyong / ali-api example snippets
//发送短信
$client = new \Liujinyong\AliApi\core\number_authentication\Message("","","","");
$res = $client->send("");
$res->toMap()
//验证短信
$client = new \Liujinyong\AliApi\core\number_authentication\Message("","","","");
$res = $client->check("");
$res->toMap()
//获取手机号
$client = new \Liujinyong\AliApi\core\one_time_login\Login("","");
$res = $client->getPhone("");
//校验手机号
$client = new \Liujinyong\AliApi\core\one_time_login\Login("","");
$res = $client->checkPhone("","");
//获取token
$client = new \Liujinyong\AliApi\core\rong_authentication\Rong("","");
$res = $client->gettoken("Android",1000,'',"","");
//获取手机号
$client = new \Liujinyong\AliApi\core\rong_authentication\Rong("","");
$res = $client->getPhone("");
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.