Move code from civicrm-core/tools
Update to use symfony and GeoIp