Skip to content
/ qqwry Public

qqwry 纯真IP数据库,根据ip获取所在地理位置,离线查询

License

Notifications You must be signed in to change notification settings

XY-JX/qqwry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qqwry 纯真IP数据库

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

第一步:composer安装

 composer require xy_jx/qqwry

第二步使用:

根据IP获取获取位置

class xy
{      
     var_dump((new xy_jx\qqwry\QQWry)->getLocation('8.8.4.150'));
     
    //array(5) {
    //    ["ip"]=>
    //  string(9) "8.8.4.150"
    //    ["start_ip"]=>
    //  string(7) "8.8.4.5"
    //    ["end_ip"]=>
    //  string(9) "8.8.4.255"
    //    ["region"]=>
    //  string(48) "美国加利福尼亚州圣克拉拉县山景市"
    //    ["asp"]=>
    //  string(12) "谷歌公司"
    //}
}

About

qqwry 纯真IP数据库,根据ip获取所在地理位置,离线查询

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages