定制 azurre/php-whois 二次开发

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

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

azurre/php-whois

Composer 安装命令:

composer require azurre/php-whois

包简介

Whois client

关键字:

README 文档

README

PHP class to retrieve WHOIS information.

Installation

Install composer in your project:

curl -s https://getcomposer.org/installer | php

Require the package with composer:

composer require azurre/php-whois

Usage

<?php
include 'vendor/autoload.php';
$whois = new \Azurre\Component\Dns\Whois();

try {
    // Retrieve raw whois info
    $rawInfo = $whois->find($domain);
    
    // Retrieve parsed whois info
    $info = $whois->getInfo($domain);
    
    if ($whois->isAvailable('google.com')) {
        echo "Domain is available\n";
    } else {
        echo "Domain is registered\n";
    }
} catch (\Exception $e) {
    echo $e->getMessage();
}

Example output:

Array
(
    [registrant] => Array
        (
            [organization] =>
            [state] =>
            [country] =>
        )

    [registration] => Array
        (
            [created] => 1997-09-15T04:00:00Z
            [updated] => 2018-02-21T18:36:40Z
            [expires] => 2020-09-14T04:00:00Z
            [registrar] => MarkMonitor Inc.
        )

    [name_servers] => Array
        (
            [0] => NS1.GOOGLE.COM
            [1] => NS2.GOOGLE.COM
            [2] => NS3.GOOGLE.COM
            [3] => NS4.GOOGLE.COM
        )

    [whois] => Array
        (
            [record] =>    Domain Name: GOOGLE.COM
                           Registry Domain ID: 2138514_DOMAIN_COM-VRSN
                           Registrar WHOIS Server: whois.markmonitor.com
                           Registrar URL: http://www.markmonitor.com
                           Updated Date: 2018-02-21T18:36:40Z
                           Creation Date: 1997-09-15T04:00:00Z
                           Registry Expiry Date: 2020-09-14T04:00:00Z
                           Registrar: MarkMonitor Inc.
                           Registrar IANA ID: 292
                           Registrar Abuse Contact Email: abusecomplaints@markmonitor.com
                           Registrar Abuse Contact Phone: +1.2083895740
                           Domain Status: clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited
                           Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
                           Domain Status: clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited
                           Domain Status: serverDeleteProhibited https://icann.org/epp#serverDeleteProhibited
                           Domain Status: serverTransferProhibited https://icann.org/epp#serverTransferProhibited
                           Domain Status: serverUpdateProhibited https://icann.org/epp#serverUpdateProhibited
                           Name Server: NS1.GOOGLE.COM
                           Name Server: NS2.GOOGLE.COM
                           Name Server: NS3.GOOGLE.COM
                           Name Server: NS4.GOOGLE.COM
                           DNSSEC: unsigned
                           URL of the ICANN Whois Inaccuracy Complaint Form: https://www.icann.org/wicf/
                        &gt;&gt;&gt; Last update of whois database: 2018-11-07T13:34:45Z &lt;&lt;&lt;

                        For more information on Whois status codes, please visit https://icann.org/epp
        )
)

azurre/php-whois 适用场景与选型建议

azurre/php-whois 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 642 次下载、GitHub Stars 达 0, 最近一次更新时间为 2018 年 11 月 04 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「whois」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 azurre/php-whois 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 azurre/php-whois 我们能提供哪些服务?
定制开发 / 二次开发

基于 azurre/php-whois 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 189
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-11-04