阿里云整合API.
$ composer require liujinyong/ali-api
1号码认证服务-短信认证功能
//发送短信
$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()
2.号码认证服务-号码认证功能
//获取手机号
$client = new \Liujinyong\AliApi\core\one_time_login\Login("","");
$res = $client->getPhone("");
//校验手机号
$client = new \Liujinyong\AliApi\core\one_time_login\Login("","");
$res = $client->checkPhone("","");
3.融合认证服务-融合认证功能
//获取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("");
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
MIT