IPInfoDB-CakePHP-Component is a project mainly written in PHP, it's free.
Check out http://www.ipinfodb.com/ip_location_api.php for more details. This is just a CakePHP component that uses the Ip to Location service
404: Not Found