IP Geolocation with Redis.
Thanks to Vladislav Ross for his ipgeobase.php. Thanks to IpGeoBase and RU-Center for their CIDR data. And, of course, thanks to Redis for their cool stuff.
Just clone...
git clone git://github.com/Yurist-85/RedIPGeo.git
... and use!
<?php
$ip = new RedIPGeo\Locator( new Redis() );
$location = $ip
->clear() // if we need to clear Redis DB from CIDR data
->load() // if we need to load CIDR data into Redis DB
->check('89.31.113.214');
?>