IPv4/IPv6 offline address database.IPv4/IPv6双栈地址离线数据库。IPv4 by 纯真网络,IPv6 by ZX Inc.

Overview

Build Status Total Downloads Latest Stable Version License PHP Version >= 5.6

IPv4/IPv6 offline address database.IPv4/IPv6双栈地址离线数据库。IPv4 by 纯真网络,IPv6 by ZX Inc.

Being updating every 5 days 每5天更新一次

IPv4 address locations by 纯真网络

database updated at 2021-09-22 with 528467 records

IPv6 address locations by Zx Inc.

database updated at 2021-07-26 with 178724 records

Usage/使用方法

composer require zx-inc/zxipdb

Your code/你的业务代码

"8.8.8.8" "end" => "8.8.8.8" "addr" => array:2 [ 0 => "美国" 1 => "加利福尼亚州圣克拉拉县山景市谷歌公司DNS服务器" ] "disp" => "美国 加利福尼亚州圣克拉拉县山景市谷歌公司DNS服务器" ] */ $result = \ZxInc\Zxipdb\IPTool::query('240e:e9:8819:0:3::3f9'); /* $result = [ "start" => "240e:e9:8800::" "end" => "240e:e9:8fff:ffff::" "addr" => array:2 [ 0 => "中国江苏省苏州市" 1 => "中国电信IDC" ] "disp" => "中国江苏省苏州市 中国电信IDC" ] */ $valid = \ZxInc\Zxipdb\IPv4Tool::isValidAddress('114.114.114.114'); /* $valid = true; */ $valid = \ZxInc\Zxipdb\IPv6Tool::isValidAddress('240e:e9:8819:0:3::3f9'); /* $valid = true; */ ">
$result = \ZxInc\Zxipdb\IPTool::query('8.8.8.8');
/*
$result = [
    "start" => "8.8.8.8"
    "end" => "8.8.8.8"
    "addr" => array:2 [
        0 => "美国"
        1 => "加利福尼亚州圣克拉拉县山景市谷歌公司DNS服务器"
    ]
    "disp" => "美国 加利福尼亚州圣克拉拉县山景市谷歌公司DNS服务器"
]
 */
$result = \ZxInc\Zxipdb\IPTool::query('240e:e9:8819:0:3::3f9');
/*
$result = [
    "start" => "240e:e9:8800::"
    "end" => "240e:e9:8fff:ffff::"
    "addr" => array:2 [
        0 => "中国江苏省苏州市"
        1 => "中国电信IDC"
    ]
    "disp" => "中国江苏省苏州市 中国电信IDC"
]
 */
$valid = \ZxInc\Zxipdb\IPv4Tool::isValidAddress('114.114.114.114');
/*
$valid = true;
 */
$valid = \ZxInc\Zxipdb\IPv6Tool::isValidAddress('240e:e9:8819:0:3::3f9');
/*
$valid = true;
 */

Notice/使用提示

  • We don't recommend forking this repository/不推荐fork此仓库
  • We recommend using linux's crontab to update ip database/推荐使用linux计划任务定期更新数据库

Auto update database/自动更新数据库

crontab -e
# add line/增加一行,每小时更新一次
0 * * * * * cd /var/www/your_project && composer require zx-inc/zxipdb

Official Website/官方网站

Author Blog/作者博客

QQ Group/QQ交流群

  • RTBAsia x 纯真IP技术组 482139657
  • ZX IPv6地址库交流群 23871048

Sponsor/赞助

QrCode

License/使用协议

ZxIpAddress is licensed under MIT.

You might also like...
Echo your public IP address with a very simple cURL request

Echo your public IP address with a very simple cURL request

A WordPress plugin that displays proxied war news from the free world to Russian IP address visitors with option to block further access.
A WordPress plugin that displays proxied war news from the free world to Russian IP address visitors with option to block further access.

A WordPress plugin that displays proxied war news from the free world to Russian IP address visitors with option to block further access.

Magento 2 custom extension to add custom attributes(longitude, latitude) to customer address

Magento 2 custom extension to add custom attributes(longitude, latitude) to customer address. Then save them to quote model and copy them from quote address to order address on bakend, frontend, rest api

This project processes a small database with php all on a web server. This project uses XAMPP to run the web server and the database.

PHP-introduction This project processes a small database with php all on a web server. This project uses XAMPP to run the web server and the database.

A PHP MySQL database client class to simplify database access

This lightweight database class is written with PHP and uses the MySQLi extension, it uses prepared statements to properly secure your queries, no need to worry about SQL injection attacks.

A bot written in PHP which attempts to link IRC with SQL database, allowing for integration between platforms

Valeyard IRC-SQL-GateWay A bot written in PHP which attempts to link IRC with SQL database, allowing for integration between platforms. This bot is mo

Library download currency rate and save in database, It's designed to be extended by any available data source.

Library download currency rate and save in database, It's designed to be extended by any available data source.

Simple user settings facade for Hyperf. Settings are stored as JSON in a single database column, so you can easily add it to an existing table.

hyperf-user-settings Simple user settings util for hyperf Settings are stored as JSON in a single database column, so you can easily add it to an exis

Database Transferring Program Using PHP

database-transferring-program Database Transferring Program Using PHP Demo: http://php-form.ga/database-transferring/ How To Use Download XAMPP from h

Releases(1.0.19)
Owner
null
PHP library to handle IPv4, IPv6 and IP ranges

IPLib - Handle IPv4, IPv6 and IP ranges Introduction IPLib is a modern, PSR-compliant, test-driven IP addresses and subnets manipulation library. It i

Michele Locati 212 Jan 3, 2023
Ip2region is a offline IP location library with accuracy rate of 99.9% and 0.0x millseconds searching performance. DB file is ONLY a few megabytes with all IP address stored. binding for Java,PHP,C,Python,Nodejs,Golang,C#,lua. Binary,B-tree,Memory searching algorithm

Ip2region是什么? ip2region - 准确率99.9%的离线IP地址定位库,0.0x毫秒级查询,ip2region.db数据库只有数MB,提供了java,php,c,python,nodejs,golang,c#等查询绑定和Binary,B树,内存三种查询算法。 Ip2region特性

Lion 12.6k Dec 30, 2022
Track any ip address with IP-Tracer. IP-Tracer is developed for Linux and Termux. you can retrieve any ip address information using IP-Tracer.

IP-Tracer is used to track an ip address. IP-Tracer is developed for Termux and Linux based systems. you can easily retrieve ip address information using IP-Tracer. IP-Tracer use ip-api to track ip address.

Rajkumar Dusad 1.2k Jan 4, 2023
Michael Pratt 307 Dec 23, 2022
Your personal Self-hosted or offline YoutTube Kids!

New Tube You have a problem with youtube kids and need online youtube? This is yours. NewTube! Simply clone the project and put your mp4 video & cover

Javad Adib 7 Dec 28, 2022
A PocketMine-MP plugin that lets you teleport among offline players

OfflinePlayerTP A PocketMine-MP plugin that lets you teleport among offline players. Commands Command Description /otp <player> Teleport to (offline)

Muqsit Rayyan 8 Sep 23, 2022
Raspberry Pi wifi hotspot with an offline-first community portal. Optionally shares internet access over Tor.

Raspberry Pi wifi hotspot with an offline-first community portal. Optionally shares internet access over Tor.

Martti Malmi 17 Dec 15, 2022
This is a PHP library developed for Symfony to collect address information.

Goldbach Algorithms Address Info Getter (fondly nicknamed AIG) is a PHP library developed for Symfony to collect address information.

Goldbach Algorithms 1 Nov 3, 2021
Simple loader to send request and read response from address.

Simple loader to send request and read response from address. Uses cURL extension. Composer package.

null 2 May 17, 2022