PHP Classes

PHP Detect Country and City: Get the current user location using codehelper.io

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (5)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 64%Total: 2,989 This week: 1All time: 1,244 This week: 45Up
Version License PHP version Categories
php-detect-country 1Shareware5.0Networking, PHP 5, Web services, Geog...
Description 

Author

This class can get the current user location using codehelper.io API.

It can determine the current user IP address checking the user remote IP address eventually behind a proxy server.

The class can send a HTTP request to the codehelper.io API to get the geographic location details associated to the user IP address.

It returns the continent, country, city, latitude, longitude and other details associated to the location city.

The class caches the locations for the given IP address for one week.

Picture of Khoa Bui
  Performance   Level  
Name: Khoa Bui <contact>
Classes: 2 packages by
Country: United States United States
Age: 35
All time rank: 893119 in United States United States
Week rank: 49 Up6 in United States United States Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example PHP Example
Accessible without login HTML file javascript_Example.html Example Javascript Code Example
Plain text file ip.codehelper.io.php Class Main Class
Plain text file php_fast_cache.php Class caching_class
Accessible without login Plain text file SSLForward.php Aux. SSLForward

 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,989
This week:1
All time:1,244
This week:45Up
User Ratings User Comments (3)
 All time
Utility:91%StarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:-
Examples:91%StarStarStarStarStar
Tests:-
Videos:-
Overall:64%StarStarStarStar
Rank:741
 
This is Very Amazing, Thank you very much
6 years ago (Tholoana Mothibi)
70%StarStarStarStar
Beautiful script, but unfortunately not accurate.
10 years ago (Wietse de Vries)
32%StarStar
Beautiful script, but unfortunately not accurate.
10 years ago (Wietse de Vries)
32%StarStar