Skip to content

Modern client library for the db-ip.com API services

Notifications You must be signed in to change notification settings

codelicia/dbip-client

This branch is 22 commits behind ScullWM/dbip-client:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

193fd64 · Sep 9, 2021

History

4 Commits
Sep 8, 2021
Sep 9, 2021
Sep 9, 2021
Sep 8, 2021
Sep 8, 2021
Sep 8, 2021
Sep 9, 2021

Repository files navigation

DbIpClient


Modern client library for the db-ip.com API services

Getting Started

First of all, you need to define an add the API client in your project. composer require scullwm/dbip-client

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

    $apiStatus = $dbipClient->getApiStatus();
    echo $apiStatus->getQueriesLeft(); // 9996

Running the Test Suite

Once you have all dependencies installed via composer install, you can run the test suite with:

./vendor/bin/phpunit tests/

About

Modern client library for the db-ip.com API services

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%