Skip to content

Geolocation and ASN lookup tool for PHP using the trusted database from https://iptoasn.com/. Retrieve country, organization, ISP, and ASN details effortlessly for any IP address, enhancing your PHP applications with accurate geolocation information and network insights.

Notifications You must be signed in to change notification settings

Francesco-Chen/php-ip-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

php-ip-info

Lightweight PHP tool for geolocation and ASN lookup. Retrieves IP address details in JSON format using the trusted database from https://iptoasn.com/. Enhance your applications with accurate geolocation information and network insights effortlessly.

Database

You need download "ip2asn-combined.tsv" from https://iptoasn.com/data/ip2asn-combined.tsv.gz

Example Response

curl https://ipinfo.example.com/?ip=1.1.1.1
{
    "ip": "1.1.1.1",
    "country": "USA",
    "country_code": "US",
    "org": "AS13335 CLOUDFLARENET",
    "asn": "13335",
    "isp": "CLOUDFLARENET",
    "range_start": "1.1.1.0",
    "range_end": "1.1.1.255"
}

About

Geolocation and ASN lookup tool for PHP using the trusted database from https://iptoasn.com/. Retrieve country, organization, ISP, and ASN details effortlessly for any IP address, enhancing your PHP applications with accurate geolocation information and network insights.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages