PHP code example of mallardduck / whodis
1. Go to this page and download the library: Download mallardduck/whodis 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/ */
mallardduck / whodis example snippets
use MallardDuck\Whodis\Whodis;
$whodis = new Whodis();
$response = $whodis->lookup('danpock.me', fullResults: true);
echo $response; // Prints WHOIS results identical to running `whois danpock.me` in shell*.