1. Go to this page and download the library: Download ip2whois/ip2whois-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/ */
ip2whois / ip2whois-php example snippets
onfigures IP2WHOIS API key
$config = new \IP2WHOIS\Configuration('YOUR_API_KEY');
$ip2whois = new \IP2WHOIS\Api($config);
// Lookup domain information
$ip2whois->lookup('example.com');
onfigures IP2WHOIS API key
$config = new \IP2WHOIS\Configuration('YOUR_API_KEY');
$ip2whois = new \IP2WHOIS\Api($config);
// Convert normal text to punycode
$ip2whois->getPunycode('täst.de');
onfigures IP2WHOIS API key
$config = new \IP2WHOIS\Configuration('YOUR_API_KEY');
$ip2whois = new \IP2WHOIS\Api($config);
// Convert punycode to normal text
$ip2whois->getNormalText('xn--tst-qla.de');
onfigures IP2WHOIS API key
$config = new \IP2WHOIS\Configuration('YOUR_API_KEY');
$ip2whois = new \IP2WHOIS\Api($config);
// Get domain name from URL
$ip2whois->getDomainName('https://www.example.com/exe');
onfigures IP2WHOIS API key
$config = new \IP2WHOIS\Configuration('YOUR_API_KEY');
$ip2whois = new \IP2WHOIS\Api($config);
// Get domain extension (gTLD or ccTLD) from URL or domain name
$ip2whois->getDomainExtension('example.com');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.