graymatterlabs/geoip
最新稳定版本:v3.0
Composer 安装命令:
composer require graymatterlabs/geoip
包简介
GeoIp capable of supporting any Ip to geolocation service
关键字:
README 文档
README
This package provides an opinionated framework for resolving geolocations from IP addresses.
Installation
You can install the package via composer:
composer require graymatterlabs/geoip:^3.0
Usage
use GrayMatterLabs\GeoIp\GeoIp; // $locator = new GrayMatterLabs\GeoIp\Locators\Cached($locator, $cache); $geoip = new GeoIp($locator); $location = $geoip->locate($ip); $location->getCountryCode(); // 'US' if ($location->isDefault()) { // }
Testing
composer test
Changelog
Please see the Release Notes for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 352
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-14