PHP code example of omnistate / iana

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

    

omnistate / iana example snippets


$rdap = new Rdap($httpClient, new Bootstrap($httpClient, $cache));
$rdap->domain('glitchr.dev');   // registrar (IANA ID), registered/expires, statuses, name servers, DNSSEC
$rdap->network('193.0.6.139');  // the range, its holder, country, abuse contact
$rdap->network('AS15169');      // an autonomous system