1. Go to this page and download the library: Download spatie/laravel-rdap 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/ */
spatie / laravel-rdap example snippets
use Spatie\Rdap\Facades\Rdap;
$domain = Rdap::domain('google.com'); // returns an instance of `Spatie\Rdap\Responses\DomainResponse`
use Spatie\Rdap\Enums\DomainStatus;
$domain->hasStatus(DomainStatus::ClientTransferProhibited); // returns a boolean
use Spatie\Rdap\Facades\Rdap;
Rdap::domainIsSupported('freek.dev'); // returns true;
Rdap::domainIsSupported('spatie.be'); // returns false because 'be' isn't currently a supported tld;
use Spatie\Rdap\Facades\Rdap;
$domain = Rdap::domain('google.com'); // returns an instance of `Spatie\Rdap\Responses\DomainResponse`
use Spatie\Rdap\Facades\Rdap;
$ip = Rdap::ip("127.0.0.1"); // returns an instance of `Spatie\Rdap\Responses\IpResponse