PHP code example of scullwm / dbip-client

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

    

scullwm / dbip-client example snippets


    $dbipClient = new Client('my_secret_token');
    $ipDetails = $dbipClient->getIpDetails('8.8.8.8');
    $ipDetails->isRisky(); // false

    $apiThrottling = $dbipClient->getApiThrottling();
    echo $apiThrottling->getQueriesLeft(); // 9996