Proposal for "Services_IP2Country"

» Metadata » Status
  • Category: Web Services
  • Proposer: Samuel ROZE 
  • License: LGPL
» Description
This class is an interface between the PHP user code and a IP2Country service:
- i2c_soap can get the country ISO code of an IPv4 or v6 adress using i2c project ([fr] http://www.d-sites.com/projets/i2c/)
- i2c_http can get the country ISO code of an IPv4 or IPv6 adress using HTTP requests

Very easy to use:
<?php
$i2c = new Services_IP2Country('i2c_soap');
$country = $i2c->getCountry('12.34.56.78');

var_dump($country);
?>

Print: string(2) "us"
» Dependencies » Links
  • PHP >= 5
» Timeline » Changelog
  • First Draft: 2009-08-09
  • Proposal: 2009-08-09
  • Call for Votes: 2009-08-20
  • Voting Extended: 2009-08-31