PHP code example of jimchen / mobile-realname-verify
1. Go to this page and download the library: Download jimchen/mobile-realname-verify 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/ */
jimchen / mobile-realname-verify example snippets
use JimChen\Authentication\Authentication;
use JimChen\Authentication\Gateways\JuheGateway;
$juhe = \JimChen\Authentication\Authentication::juhe([
'key' => 'your key',
'openid' => 'your openid',
'type' => JuheGateway::COMMON
]);
// 手机号码实名认证
$juhe->verify('Real Name', 'ID Card', 'Mobile Number');