Who-Hosts-This PHP API
A simple PHP wrapper for Who-Hosts-This API calls, (*1)
Installation
We recommended installing who-hosts-this-php through Composer., (*2)
# Install Composer
curl -sS https://getcomposer.org/installer | php
Next, run the Composer command to install the latest stable version of Who-Hosts-This:, (*3)
php composer.phar require whatcms/who-hosts-this-php
Once installed, you can use the WhoHostsThis class to fetch results:, (*4)
require 'vendor/autoload.php';
$key = 'Your API Key';
$detector = new \WhoHostsThis\WhoHostsThis($key);
$check_url = 'en.wikipedia.org';
$result = $detector->CheckUrl($check_url);
print_r($result)