PHP Classes

Country From IP: Lookup the country of a given IP address

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 49%Total: 9,837 All time: 145 This week: 60Up
Version License Categories
countryfromip 1.0.0GNU General Publi...Networking, PHP 5, Geography
Description 

Author

This class can determining country of the network of a given IP address looking up a simple text database file.

It can also determine the path of an image file of the flag of a given country.

Picture of Er. Rochak Chauhan
  Performance   Level  
Name: Er. Rochak Chauhan is available for providing paid consulting. Contact Er. Rochak Chauhan .
Classes: 54 packages by
Country: India India
Age: 46
All time rank: 21 in India India
Week rank: 19 Down2 in India India Down
Innovation award
Innovation award
Nominee: 15x

Winner: 4x

  Files folder image Files (8)  
File Role Description
Plain text file CountryFromIP.inc.php Class Get Country and Flag from IP
Accessible without login Plain text file CountryIPDatabase1of5.txt Data CountryIPDatabase1
Accessible without login Plain text file CountryIPDatabase2of5.txt Data IP Database2 of 5
Accessible without login Plain text file CountryIPDatabase3of5.txt Data CountryIPDatabase
Accessible without login Plain text file CountryIPDatabase4of5.txt Data CountryIPDatabase
Accessible without login Plain text file CountryIPDatabase5of5.txt Data CountryIPDatabase
Accessible without login Plain text file Example.php Example Example Script
Accessible without login Plain text file READ_ME.txt Doc. Instructions

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:9,837
This week:0
All time:145
This week:60Up
User Ratings User Comments (4)
 All time
Utility:59%StarStarStar
Consistency:65%StarStarStarStar
Documentation:61%StarStarStarStar
Examples:69%StarStarStarStar
Tests:-
Videos:-
Overall:49%StarStarStar
Rank:2840
 
Does what it's supposed to do.
15 years ago (F Philip DeGeorge)
67%StarStarStarStar
Didn't work.
15 years ago (Aaron)
40%StarStarStar
do you have an updated list of country IP's because whats app...
16 years ago (ray anthony)
70%StarStarStarStar
This is PHP5, with minor modifications to class structure wil...
16 years ago (Lassi A Liikkanen)
35%StarStar