PHPackages                             ipgeolocation/ipgeolocation-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. ipgeolocation/ipgeolocation-php-sdk

ActiveLibrary[API Development](/categories/api)

ipgeolocation/ipgeolocation-php-sdk
===================================

Official PHP SDK for the IPGeolocation.io IP Location API with single and bulk lookup support.

v3.0.0(2mo ago)414.8k↑193.8%21[2 issues](https://github.com/IPGeolocation/ip-geolocation-api-php/issues)Apache-2.0PHPPHP ^8.1CI passing

Since Jul 3Pushed 2mo ago7 watchersCompare

[ Source](https://github.com/IPGeolocation/ip-geolocation-api-php)[ Packagist](https://packagist.org/packages/ipgeolocation/ipgeolocation-php-sdk)[ Docs](https://ipgeolocation.io)[ RSS](/packages/ipgeolocation-ipgeolocation-php-sdk/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (7)Versions (5)Used By (0)

IPGeolocation PHP SDK
=====================

[](#ipgeolocation-php-sdk)

Official PHP SDK for the IPGeolocation.io IP Location API.

Look up IPv4, IPv6, and domains with `/v3/ipgeo` and `/v3/ipgeo-bulk`. Get geolocation, company, ASN, timezone, network, hostname, abuse, user-agent, and security data.

- PHP 8.1+
- Sync client built on Guzzle
- Typed responses plus raw JSON and XML methods

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Quick Start](#quick-start)
- [At a Glance](#at-a-glance)
- [Get Your API Key](#get-your-api-key)
- [Authentication](#authentication)
- [Plan Behavior](#plan-behavior)
- [Client Configuration](#client-configuration)
- [Available Methods](#available-methods)
- [Request Options](#request-options)
- [Examples](#examples)
- [Response Metadata](#response-metadata)
- [JSON Helpers](#json-helpers)
- [Errors](#errors)
- [Troubleshooting](#troubleshooting)
- [Frequently Asked Questions](#frequently-asked-questions)
- [Links](#links)

Installation
------------

[](#installation)

```
composer require ipgeolocation/ipgeolocation-php-sdk
```

```
