naux/iplocation 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

naux/iplocation

Composer 安装命令:

composer require naux/iplocation

包简介

基于纯真IP库的,查询IP归属地PHP库

README 文档

README

#介绍 PHP实现 基于纯真IP库 根据IP地址查找对应的地理位置信息

####更新的版本 本库附带的qqwry.dat文件是2014.11.20更新的,如你需要更新的版本,请点击 此处 到页面右上角下载更新的版本。dat文件官网5天一次更新。

####更高的性能

如果你需要更高的性能,请使用 C扩展库

#安装

在你的composer.json中加入

"require": {
    "naux/iplocation": "dev-master"
},

#使用

use Naux\IpLocation\IpLocation;

$ip = new IpLocation();

$location = $ip->getlocation('119.75.217.56');

$location的内容如下

array (size=5)
  'ip' => string '119.75.217.56' (length=13)
  'beginip' => string '119.75.208.0' (length=12)
  'endip' => string '119.75.223.255' (length=14)
  'country' => string '北京市' (length=9)
  'area' => string '北京百度网讯科技有限公司BGP节点' (length=45)

####指定其他路径的纯真库dat文件

use Naux\IpLocation\IpLocation;

$ip = new IpLocation('/home/qqwry.dat');

统计信息

  • 总下载量: 978
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 20
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 19
  • Watchers: 3
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固