1 Star 0 Fork 0

Jansen/EPP NV

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README
MIT

EPP实名认证

介绍

Extensible Provisioning Protocol (EPP) China Name Verification Mapping的PHP实现,基于metaregistrar/php-epp-client开源项目的封装,目前支持的VSP为泰尔英福(Teleinfo.cn),未来还将支持CNNIC。

安装教程

  1. composer方式安装后,加载composer的autoload.php即可使用
  2. 非composer方式安装时,手动引入本项目的autoloader.php即可
特别说明:
  请检查metaregistrar/php-epp-client版本是否大于1.0.10
  Composer安装命令:composer require jansen/nv

使用说明

配置参数说明

host:泰尔英福认证服务器地址,OTE环境为ssl://infoid.ote.teleinfo.cn,正式环境为ssl://infoid.teleinfo.cn
port:泰尔英福认证服务器端口,默认为700
username:用户名
password:密码
certpath:证书路径,可将CA证书、私钥、证书合并为一个证书文件
certpwd:证书密码
logpath:日志存储路径,支持传入具体文件或目录,此参数有值则自动开启日志
timeout:超时时间,单位:秒

调用方法说明

require dirname(__DIR__).'/vendor/jansen/autoloader.php';
//获取认证实例
$nv = \jansen\nv\NV::getInstance('teleinfo', $config);
//命名检查
$result = $nv->check('example');
//生成命名核验验证码
$result = $nv->nameCreate('example');
//生成实名核验验证码
$result = $nv->realNameCreate($role, $name, $number, $proof, $docs);
//获取核验提交的数据
$result = $nv->inputInfo('1-03a5xxxx334axxxxa6e0xxxx68a8c0xxxx');
//获取核验验证码
$result = $nv->signedCode('1-03a5xxxx334axxxxa6e0xxxx68a8c0xxxx');
//更新核验密码
$result = $nv->resetPassword('1-03a5xxxx334axxxxa6e0xxxx68a8c0xxxx');
//获取人工核验进度
$result = $nv->process();
MIT License Copyright (c) 2020 Jansen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Extensible Provisioning Protocol (EPP) China Name Verification Mapping的PHP实现,目前支持的VSP为泰尔英福(Teleinfo.cn) expand collapse
PHP
MIT
Cancel

Releases (5)

All
3 years ago

Contributors

All

Activities

can not load any more
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/jansen_phper/epp_nv.git
git@gitee.com:jansen_phper/epp_nv.git
jansen_phper
epp_nv
EPP NV
master

Search