dimsav/laravel-ip-service
最新稳定版本:v1
Composer 安装命令:
composer require dimsav/laravel-ip-service
包简介
A Laravel package to get the client's country using the ip. A wrapper for http://ip2nation.com
README 文档
README
Tries to guess the country code of the client, using his IP.
Installation
Download and import the ip database from ip2nation.com
Usage
$service = App::make('Dimsav\IpService\IpService'); // country code for the given ip address echo $service->getCountryCodeFromIp('123.123.123.123'); // country code for the client's ip address echo $service->getCountryCodeFromClientIp();
统计信息
- 总下载量: 50
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 119
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-12-29