lshorz/laravel-geoip

Support for multiple GeoIP services.

1.1 2018-05-07 04:20 UTC

README

Build Status Latest Stable Version Total Downloads Patreon donate button Donate weekly to this project using Gratipay Donate to this project using Flattr Donate to this project using Paypal

Determine the geographical location and currency of website visitors based on their IP addresses.

Official Documentation

Documentation for the package can be found on Lyften.com.

这是基于 torann/geoip的修改版。

增加了Taobao,新浪和纯真ip的接口

安装及配置说明

$ composer require lshorz/larvel-geoip

发布扩展

$ php artisan vendor:publish

选中Torann\GeoIP\GeoIPServiceProvider

默认采用的是纯真ip库,扩展发布后纯真IP库将会在/storage/app/qqwry.data 如果自己更新的话直接替换即可