everapi/ipbase-php

A PHP wrapper for the ipbase.com API

v1.0.1 2023-06-09 14:50 UTC

This package is auto-updated.

Last update: 2024-04-09 16:26:24 UTC


README

68747470733a2f2f6170702e6970626173652e636f6d2f696d672f6c6f676f2f6970626173652e706e67

ipbase-php - PHP IP data lookup

Latest Version on Packagist Total Downloads

This package is a PHP wrapper for ipbase.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/ipbase-php

Usage

Initialize the API with your API Key (get one for free at ipbase.com):

$ipBase = new \Ipbase\Ipbase\IpbaseClient('YOUR-API-KEY');

Afterwards you can use the endpoints of the API like this:

echo $ipBase->status();
echo $ipBase->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.