overals/yii2-whois

Whois client for yii2.

Installs: 3 894

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 191

Type:yii2-extension

1.0.2 2018-05-06 19:05 UTC

This package is auto-updated.

Last update: 2024-10-14 03:35:22 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";
}