igi /sypexgeo
该软件包已被废弃,不再维护。未建议替代软件包。
PHP库 Sypex Geo API (http://sypexgeo.net)
dev-master
2020-03-25 11:33 UTC
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2020-03-25 11:33:54 UTC
README
Sypex Geo - 通过IP地址获取位置的软件产品。获取IP地址后,Sypex Geo将输出访问者的位置信息 - 国家、地区、城市、地理坐标等,支持俄语和英语。Sypex Geo使用本地紧凑型二进制数据库文件,运行速度非常快。更多信息请访问:http://sypexgeo.net/
安装
安装此扩展的首选方式是通过 composer。
将以下内容添加到你的 composer.json
文件的 require 部分。
"igi/sypexgeo": "*"
在 composer.json
文件的 require 部分添加以下内容。
在 "composer install" 命令中更新数据库
将 "post-install-cmd" 事件添加到 composer.json
"scripts": { "post-install-cmd": [ "IgI\\SypexGeo\\Composer::installDatabases" ] }
将 "extra" 设置添加到 composer.json
"extra": { "sypexgeo_remote": "https://sypexgeo.net/files/SxGeoCity_utf8.zip", "sypexgeo_local": "/path/to/project/SxGeoCity.dat" }