PHPackages                             iplocate/php-iplocate - 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. iplocate/php-iplocate

ActiveLibrary[API Development](/categories/api)

iplocate/php-iplocate
=====================

PHP client for the IPLocate.io geolocation API

v1.0.0(11mo ago)1267MITPHPPHP ^8.0CI passing

Since Jun 7Pushed 11mo agoCompare

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

READMEChangelogDependencies (5)Versions (2)Used By (0)

IPLocate geolocation client for PHP
===================================

[](#iplocate-geolocation-client-for-php)

[![Latest Version](https://camo.githubusercontent.com/6228893f5f4d6cee5bd71b11bf8a4a47b0aa3451abc7d81f39cd50830f34a9ce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f69706c6f636174652f7068702d69706c6f636174652e737667)](https://packagist.org/packages/iplocate/php-iplocate)[![Total Downloads](https://camo.githubusercontent.com/5588efeaa91110885a246c0dfadfaf703bdd895ef5f4989b72fa27a1011440a6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f69706c6f636174652f7068702d69706c6f636174652e737667)](https://packagist.org/packages/iplocate/php-iplocate)[![PHP Version](https://camo.githubusercontent.com/9142beb2692f48a3a89e95a7e699fde456b6eb03702365c885c988453341ac5e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f69706c6f636174652f7068702d69706c6f636174652e737667)](https://packagist.org/packages/iplocate/php-iplocate)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)[![Tests](https://github.com/iplocate/php-iplocate/workflows/CI/badge.svg)](https://github.com/iplocate/php-iplocate/actions)

A PHP client for the [IPLocate.io](https://iplocate.io) geolocation API. Look up detailed geolocation and threat intelligence data for any IP address:

- **IP geolocation**: IP to country, IP to city, IP to region/state, coordinates, timezone, postal code
- **ASN information**: Internet service provider, network details, routing information
- **Privacy &amp; threat detection**: VPN, proxy, Tor, hosting provider detection
- **Company information**: Business details associated with IP addresses - company name, domain, type (ISP/hosting/education/government/business)
- **Abuse contact**: Network abuse reporting information
- **Hosting detection**: Cloud provider and hosting service detection using our proprietary hosting detection engine

See what information we can provide for [your IP address](https://iplocate.io/what-is-my-ip).

Getting started
---------------

[](#getting-started)

You can make 1,000 free requests per day with a [free account](https://iplocate.io/signup). For higher plans, check out [API pricing](https://www.iplocate.io/pricing).

### Requirements

[](#requirements)

- PHP 8.0 or higher
- Guzzle HTTP client

### Installation

[](#installation)

Install via Composer:

```
composer require iplocate/php-iplocate
```

Or add to your `composer.json`:

```
{
    "require": {
        "iplocate/php-iplocate": "^1.0"
    }
}
```

### Quick start

[](#quick-start)

```
