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(4mo ago)426.6k↑24.3%4MITPHPPHP &gt;=8.3 &lt;8.6CI passing

Since Jul 6Pushed 3mo ago1 watchersCompare

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

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)

---

[![Sponsor](https://camo.githubusercontent.com/d57b8ff0c3e08877e313deccbfe103a9cbcc5121e4d381986c7f56fb19a08b71/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53706f6e736f722d47697448756225323053706f6e736f72732d6561346161613f6c6f676f3d67697468756273706f6e736f7273266c6f676f436f6c6f723d7768697465)](https://github.com/sponsors/sudiptpa)

If this package has been useful to you, GitHub Sponsors is a simple way to support ongoing maintenance, improvements, and future releases.

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
