定制 vendor-patch/rdap 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

vendor-patch/rdap

Composer 安装命令:

composer create-project vendor-patch/rdap

包简介

Forked from hiqdev: Registration Data Access Protocol – core objects implemantation package accodring to the RFC 7483

README 文档

README

Latest Stable Version Total Downloads Build Status Scrutinizer Code Coverage Scrutinizer Code Quality

RDAP server library

This PHP library makes it very easy to build an RDAP server that talks with your registry back-end.

Features

  • Include this library in your PHP web application to significantly ease implementing an RDAP server and client
  • Can be combined with any back-end by simply implementing one or more methods
  • All you need to do is retrieve the data and populate some PHP objects

Installation

The preferred way to install this project is through composer.

php composer.phar require hiqdev/rdap:dev-master

or add

"hiqdev/rdap": "dev-master"

to the require section of your composer.json.

Details

This library understands and supports the following RFC's:

How it works

  • The library contains a number of PHP objects representing the data structures defined in rfc7483
  • You need to write the code to populate these objects whenever a query comes in

How to use

We have created a sample project which could help you with your implementation. You can find both the source and instructions in the following project: rdap-server-example

Simple usage:

use hiqdev\rdap\core\Infrastructure\Provider\DomainProviderInterface;
use hiqdev\rdap\core\Domain\Constant\Role;
use hiqdev\rdap\core\Domain\Entity\Domain;
use hiqdev\rdap\core\Domain\ValueObject\DomainName;

class DomainProvider implements DomainProviderInterface
{
    /** @var object */
    private $domainInfo;
    
    public function get(DomainName $domainName): Domain
    {
        $domain = new Domain(DomainName::of($this->domainInfo->domainName));
        $domain->setPort43(DomainName::of($this->domainInfo->rdapServer));
        $domain->addEntity($this->domainInfo->getEntity(Role::REGISTRANT()));
        
        return $domain;
    }
}

License

This project is released under the terms of the BSD-3-Clause license. Read more here.

Copyright © 2019, HiQDev (http://hiqdev.com/)

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2024-01-01