ChiperSoft/PHP-Miscellanea — Issue #3: All countries
Author: Geczy
Created: 2012-02-20 00:51:02+00:00
State: open

Found a gem for you:
http://geolite.maxmind.com/download/geoip/api/php/geoipregionvars.php

Whatcha think?