PHP Classes

Class ip2c by Ofloo: Get the country of IP v4 or v6 address from ip2c

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-06-02 (3 months ago) RSS 2.0 feedNot enough user ratingsTotal: 520 All time: 5,693 This week: 204Up
Version License PHP version Categories
ip2c-class 1.1BSD License5.3Networking, PHP 5, Web services, Geog...


This class can get the country of IP v4 or v6 addresses from ip2c service.

It can send an HTTP request to the ip2c Web server to retrieve the country of a given IP address.

The class can return the IP address country code, country name, registration of where and when the IP was allocated.

Picture of Wouter Snels
Name: Wouter Snels <contact>
Classes: 2 packages by
Country: Belgium Belgium
Age: 43
All time rank: 166110 in Belgium Belgium
Week rank: 402 Up4 in Belgium Belgium Up

  Files folder image Files  
File Role Description
Plain text file ip2c.class.php Class ip2c class
Accessible without login Plain text file example.php Example Example
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:5,693
This week:204Up