PHP code example of mgocobachi / domaintools

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

    

mgocobachi / domaintools example snippets



$dt = domaintools('myusername', 'my_long_api_key');


$profile = domaintools()->profile('domaintools.com');


$reputation = domaintools()->reputation('domaintools.com');


$search = domaintools()->search('domain tools', [
  'active_only'   => 'true',
]);

$results = collection($search->results)->filter(function ($result) {
    return $result->char_count > 15;
});


$results = collection(domaintools()->search('domain tools', [
  'active_only' => 'true',
])->results)->filter(function ($result) {
    return $result->char_count > 15;
});