Skip to content

Yurist-85/RedIPGeo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

RedIPGeo

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.

How to use

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');
?>

About

IP Geolocation with Redis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages