chanshige/whois

'chanshige/whois' is that helps your domain registered information(whois) search.

v0.1.0 2018-01-17 15:10 UTC

README

Build Status Coverage Status

chanshige/whois

domain registered information(whois) search.

Installation

With Composer

$ composer require chanshige/whois 'v0.1.0'

usage

<?php
require __DIR__ . '/vendor/autoload.php';

use Chanshige\Factory\Connect;
use Chanshige\Whois;
use Chanshige\Whois\ResponseBuilder\TemplateBuilder;

$whois = new Whois(new Connect(), new TemplateBuilder());

try {
    /** @var TemplateBuilder $result */
    $result = $whois->query('shigeki.tokyo', 'whois.nic.tokyo');
    echo implode("<br>", $result());
} catch (Exception $e) {
    echo $e->getMessage();
}

test (with coverage)

$ composer test