PHP code example of oarkhipov / whois

1. Go to this page and download the library: Download oarkhipov/whois 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/ */

    

oarkhipov / whois example snippets


Oarkhipov\Whois\Laravel\WhoisServiceProvider::class,

use Oarkhipov\Whois\Fetcher;

$fetcher = new Fetcher();

use Oarkhipov\Whois\Fetcher;

class TestController extends Controller
{
    private $whoisFetcher;

    public function __construct(Fetcher $fetcher)
    {
      $this->whoisFetcher = $fetcher;
    }
}

$fetcher = $this->app->make('whois');

$whois = $fetcher->fetch('http://facebook.com');