overals / yii2-whois
Whois client for yii2.
Installs: 4 120
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 191
Type:yii2-extension
Requires
- php: >=5.3.2
- ext-curl: *
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2025-03-14 04:34:40 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"; }