Projects / Geolocator-PHP


Geolocator is a PHP class which provides an easy-to-use interface to the IP address location XML API described at This API allows you to find the city, state/region, country, and approximate latitude/longitude associated with an IP address or domain. The class aims to be easy-to-use, versatile, and well-documented. The class requires PHP 5.30 or greater, compiled with cURL support.

Operating Systems

Last announcement

Name change to Geolocator-PHP 30 Jan 2010 21:37

FYI: the IPGeolocation PHP Class is now called Geolocator-PHP.

Recent releases

  •  05 Feb 2010 02:25

    Release Notes: Array and iterator functionality was implemented; Geolocation objects are now returned instead of arrays. This version could start being integrated into new and updated software; the API should be more or less stable.

    •  30 Jan 2010 21:40

      Release Notes: One Geolocator can be used to find multiple locations in one lookup. It supports country precision and domain lookups. Internal operation was made more efficient. API usage is now more intuitive and object-oriented. A PHP notice about $this->timeout being undefined was fixed. Many other changes have been made. This is a rethinking of how the class should work.

      •  11 Jul 2009 15:02

        Release Notes: Minor fixes were made for whitespace/tabs. Other were minor fixes were done.

        •  27 Jun 2009 04:16

          Release Notes: The API endpoint URL was updated. The cURL code was improved. Error handling was improved. The API's backup server was added. Documentation was improved.

          •  20 May 2009 20:43

            Release Notes: This is the first release. It is near-production quality, but there is some testing and a few other TODOs before 1.0.


            Project Spotlight


            A Fluent OpenStack client API for Java.


            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.