PHP Classes

IP_to_country: Determine the country of an IP address using Whois

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 44%Total: 2,159 All time: 1,815 This week: 146Up
Version License Categories
ip_to_country 1.0GNU General Publi...Networking, Geography
Description 

Author

This class can be used to determine the country of an IP address using the Whois service.

It connects to an Whois server and queries the information associated to a given IP address.

If country information is available, the class returns an array with the country code, country name and the file name of the country flag.

Picture of Valerio Giuffrida
Name: Valerio Giuffrida <contact>
Classes: 2 packages by
Country: Italy Italy

 

  Files folder image Files (3)  
File Role Description
Accessible without login Plain text file countries.txt Data Collection of ISO codes and countries's name
Plain text file ip2country.class.php Class Class
Accessible without login Plain text file test.php Example Test script

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:2,159
This week:0
All time:1,815
This week:146Up
User Ratings User Comments (1)
 All time
Utility:64%StarStarStarStar
Consistency:67%StarStarStarStar
Documentation:-
Examples:60%StarStarStarStar
Tests:-
Videos:-
Overall:44%StarStarStar
Rank:3435
 
It's useful for me :)
14 years ago (Nguyen Duc Phu)
67%StarStarStarStar