wenbinye/ipip

get the ip location in Chinese

v1.0 2016-07-15 03:29 UTC

This package is auto-updated.

Last update: 2024-10-15 18:02:18 UTC


README

Installation

Install via composer ::

composer require wenbinye/ipip

Usage

code example ::

<?php
use ipip\Ip;

var_dump(Ip::getInstance()->find('1.192.94.203'));
// 返回结果
array (size=4)
  0 => string '中国' (length=6)
  1 => string '河南' (length=6)
  2 => string '郑州' (length=6)
  3 => string '' (length=0)