PHP code example of whatcms / who-hosts-this-php
1. Go to this page and download the library: Download whatcms/who-hosts-this-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
whatcms / who-hosts-this-php example snippets
$key = 'Your API Key';
$detector = new \WhoHostsThis\WhoHostsThis($key);
$check_url = 'en.wikipedia.org';
$result = $detector->CheckUrl($check_url);
print_r($result)
bash
# Install Composer
curl -sS https://getcomposer.org/installer | php
bash
php composer.phar