A simple PHP wrapper for Who-Hosts-This API calls https://www.who-hosts-this.com/API
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
README.md
composer.json

README.md

Who-Hosts-This PHP API

A simple PHP wrapper for Who-Hosts-This API calls

Installation

We recommended installing who-hosts-this-php through Composer.

# Install Composer
curl -sS https://getcomposer.org/installer | php

Next, run the Composer command to install the latest stable version of Who-Hosts-This:

php composer.phar require whatcms/who-hosts-this-php

Once installed, you can use the WhoHostsThis class to fetch results:

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)