PHP Classes

GeoIP: Get the location of an IP address using ipinfo.io

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 550 All time: 5,511 This week: 146Up
Version License PHP version Categories
utils-geoip 1.0GNU Lesser Genera...5Networking, PHP 5, Web services, Geog...
Description 

Author

This class can Get the location of an IP address using ipinfo.io.

It can send an HTTP request to the ipinfo.io API Web server to retrieve the geographic location details of a given IP address or the address of the current request user.

The class parses the results and returns an object with the original IP address, the associated host name, the latitude and longitude coordinates, the origanization to which the IP address belongs, the city, region, country, and phone area code.

Picture of Steve Winnington
  Performance   Level  
Name: Steve Winnington is available for providing paid consulting. Contact Steve Winnington .
Classes: 8 packages by
Country: United Kingdom
Age: 50
All time rank: 123455 in United Kingdom
Week rank: 180 Up5 in United Kingdom Up
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files (1)  
File Role Description
Plain text file UtilsGeoIP.php Class This class uses the Free GeoIP to retrieve Geolocation information for a given IP address

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:550
This week:0
All time:5,511
This week:146Up