NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2066 most downloaded on Packagist
[Official Release] IP2Location PHP API to get location info from IPv4 and IPv6 address.
Latest stable
9.8.1
Last release 11 months ago
21 Dec 2025
Release timing varies
gaps range from 2 weeks to 1.5 years
Most releases are documented
notes for 27 of 38 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
38 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
Fixed unpack casting issue in PHP 8.
Fixed unpack casting issue in PHP 8.
Added AS domain, AS usage type, and AS CIDR fields.
Added AS domain, AS usage type, and AS CIDR fields.
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fix Creation of dynamic property deprecation warning for PHP 8.2+.
Fix Creation of dynamic property deprecation warning for PHP 8.2+.
Fixed wrong value returned by cidrToIpv6 function.
Fixed wrong value returned by cidrToIpv6 function.
Added support for district, ASN and AS.
Added support for district, ASN and AS.
Fixed BIN Downloader Script with .env file.
Fixed BIN Downloader Script with .env file.
Added BIN Downloader Script.
Added BIN Downloader Script.
Fixed missing ipdata in getVisitorIp function.
Fixed missing ipdata in getVisitorIp function.
Updated getVisitorIp function.
Updated getVisitorIp function.
Nothing published for this version
Added new Region class to lookup for ISO 3166-2 subdivision code form country code and region name.
Added new Region class to lookup for ISO 3166-2 subdivision code form country code and region name.
- Fixed typo errors. - Removed unnecessary functions. - Reduced file IO read.
Added functions to compress and expand IPv6 address.
Added ipv4ToCidr, cidrToIpv4, ipv6ToCidr, cidrToIpv6 functions.
Added ipv4ToCidr, cidrToIpv4, ipv6ToCidr, cidrToIpv6 functions.
Fixed Teredo IP address parser.
Fixed Teredo IP address parser.
Added supports for address type and category fields.
Added Country class to query country information.
Added Country class to query country information.
Fixed filename case-sensitivity issue under Linux environment.
Fixed filename case-sensitivity issue under Linux environment.
Updated file structures to use the latest standards.
Updated file structures to use the latest standards.
Added common tools for IP calculation.
Added common tools for IP calculation.
Removed public const to support an earlier version of PHP.
Removed public const to support an earlier version of PHP.
Nothing published for this version
Fixed getCidr() function to return an array of subnet.
Fixed getCidr() function to return an array of subnet.
Added IP2Location Web service.
Added IP2Location Web service.
Improvement on library performance.
Improvement on library performance.
Improvement on library performance.
Improvement on library performance.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Great improvement on the IP lookup speed with the use of IP2Location v8 BIN format.
Great improvement on the IP lookup speed with the use of IP2Location v8 BIN format.
Fix the IP lookup issue for DB24
Fix the IP lookup issue for DB24
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Supported IPv6 and new BIN format
Supported IPv6 and new BIN format
One column per quarter.