everapi / iplookupapi-php
A PHP wrapper for the iplookupapi.com API
dev-master
2023-06-01 08:13 UTC
Requires
- php: ^8.0
- guzzlehttp/guzzle: ^7.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- pestphp/pest: ^1.20
- spatie/ray: ^1.28
This package is not auto-updated.
Last update: 2024-11-15 13:21:59 UTC
README
iplookupapi-php - PHP IP data lookup
This package is a PHP wrapper for iplookupapi.com that aims to make the usage of the API as easy as possible in your project.
Installation
You can install the package via composer:
composer require everapi/iplookupapi-php
Usage
Initialize the API with your API Key (get one for free at iplookupapi.com):
$iplookupapi = new \iplookupapi\iplookupapi\iplookupapiClient('YOUR-API-KEY');
Afterwards you can use the endpoints of the API like this:
echo $iplookupapi->status();
echo $iplookupapi->info([ 'ip' => '1.1.1.1', 'language' => 'de', ]);
Learn more about endpoints, parameters and response data structure in the docs.
License
The MIT License (MIT). Please see License File for more information.