PHPackages                             ipinfo/ipinfo - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ipinfo/ipinfo

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ipinfo/ipinfo
=============

The official PHP library for IPinfo, the most reliable, accurate, and in-depth source of IP address data available anywhere. We process terabytes of data to produce our custom IP geolocation, company, carrier and IP type data sets. Visit our developer docs at https://ipinfo.io/developers.

v3.4.0(3mo ago)2891.2M—5.1%87[8 issues](https://github.com/ipinfo/php/issues)11Apache-2.0PHPPHP &gt;=8.0CI passing

Since Oct 2Pushed 3mo ago27 watchersCompare

[ Source](https://github.com/ipinfo/php)[ Packagist](https://packagist.org/packages/ipinfo/ipinfo)[ Docs](https://github.com/ipinfo/php)[ RSS](/packages/ipinfo-ipinfo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (5)Versions (21)Used By (11)

[![IPinfo](https://camo.githubusercontent.com/df39f243048cc9deeddfa4ac2f142843bf11458de6dcc17a288c9a1dfad1fcc4/68747470733a2f2f6970696e666f2e696f2f7374617469632f6970696e666f2d736d616c6c2e737667)](https://ipinfo.io/) IPinfo PHP Client Library
=================================================================================================================================================================================================================================================

[](#-ipinfo-php-client-library)

This is the official PHP client library for the [IPinfo.io](https://ipinfo.io) IP address API, allowing you to look up your own IP address, or get any of the following details for an IP:

- [IP to Geolocation data](https://ipinfo.io/ip-geolocation-api) (city, region, country, postal code, latitude, and longitude)
- [ASN information](https://ipinfo.io/asn-api) (ISP or network operator, associated domain name, and type, such as business, hosting, or company)
- [Company details](https://ipinfo.io/ip-company-api) (the name and domain of the business that uses the IP address)
- [Carrier information](https://ipinfo.io/ip-carrier-api) (the name of the mobile carrier and MNC and MCC for that carrier if the IP is used exclusively for mobile traffic)

Check all the data we have for your IP address [here](https://ipinfo.io/what-is-my-ip).

### Getting Started

[](#getting-started)

You'll need an IPinfo API access token, which you can get by signing up for a free account at [https://ipinfo.io/signup](https://ipinfo.io/signup?ref=lib-PHP).

The free plan is limited to 50,000 requests per month, and doesn't include some of the data fields such as IP type and company data. To enable all the data fields and additional request volumes see [https://ipinfo.io/pricing](https://ipinfo.io/pricing?ref=lib-PHP).

The library also supports the Lite API, see the [Lite API section](#lite-api) for more info.

#### Installation

[](#installation)

The package works with PHP 8 and is available using [Composer](https://getcomposer.org).

```
composer require ipinfo/ipinfo
```

#### Quick Start

[](#quick-start)

```
