overals/yii2-whois

Whois client for yii2.

Installs: 3 680

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 189

Type:yii2-extension

1.0.2 2018-05-06 19:05 UTC

This package is auto-updated.

Last update: 2024-05-14 02:39:31 UTC


README

Yii2 extension to retrieve WHOIS information.

Installation

$ php composer.phar require overals/yii2-whois "~1.0.0"

OR

Add to your composer.json

{
    "require": {
        "overals/yii2-whois": "~1.0.0"
    }
}

and run

$ composer update

Example of usage

<?php

$domainName = 'wtools.io';

$domain = new \overals\whois\Whois($domainName);
$whois_answer = $domain->info();

echo $whois_answer;

if ($domain->isAvailable()) {
    echo "Domain is available\n";
} else {
    echo "Domain is registered\n";
}