whatcms / who-hosts-this-php
A simple PHP wrapper for Who-Host-This API calls
v0.1
2018-02-22 22:39 UTC
Requires
- php: >=5.5
- guzzlehttp/guzzle: ~6.0
This package is not auto-updated.
Last update: 2025-03-30 07:44:24 UTC
README
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)