PHPackages                             sudiptpa/ipstack - 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. sudiptpa/ipstack

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

sudiptpa/ipstack
================

A simple package for IP to Location implementation with PHP.

v2.1.0(2mo ago)425.8k↓40%4MITPHPPHP &gt;=8.3 &lt;8.6CI passing

Since Jul 6Pushed 2mo ago1 watchersCompare

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

READMEChangelog (1)Dependencies (8)Versions (6)Used By (0)

ipstack PHP Client
==================

[](#ipstack-php-client)

[![CI](https://github.com/sudiptpa/ipstack/actions/workflows/ci.yml/badge.svg)](https://github.com/sudiptpa/ipstack/actions/workflows/ci.yml)[![Latest Version](https://camo.githubusercontent.com/19514a57c4b9f50024df3a9ed82a9aca49246ddc4e20daa649149986045334c3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73756469707470612f6970737461636b)](https://packagist.org/packages/sudiptpa/ipstack)[![Downloads](https://camo.githubusercontent.com/0a6c5f7621f8b86f6266447c04ba4508226802b487b4bc027d3b1c26c1c62bdd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73756469707470612f6970737461636b)](https://packagist.org/packages/sudiptpa/ipstack)[![License](https://camo.githubusercontent.com/aee3e4916482d8674b803f2ec3e5978f5f82828a55f56fa1f919c15c3a8c282f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f73756469707470612f6970737461636b)](https://packagist.org/packages/sudiptpa/ipstack)[![PHP Version](https://camo.githubusercontent.com/bf79f935b240ee405e18fb3586843754e0b126b4fec89d354cef1ecd1db52b7e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73756469707470612f6970737461636b)](https://packagist.org/packages/sudiptpa/ipstack)

A modern, PSR-based PHP client for the [ipstack](https://ipstack.com) API.

Highlights
----------

[](#highlights)

- PSR-18 transport architecture
- Factory-based client construction
- Typed result models (`IpstackResult`, `Country`, `Region`, etc.)
- Bulk lookup support (up to 50 IPs per request)
- Domain exceptions mapped from ipstack API error codes

Requirements
------------

[](#requirements)

- PHP `8.3` to `8.5` (`>=8.3
