drongotech/iplocationmanager
最新稳定版本:v1.0.7
Composer 安装命令:
composer require drongotech/iplocationmanager
包简介
Using IP Stack to get request ip and save the ip meta data
README 文档
README
IP location manager uses Ipstack to do a look up of the client ip address. The data include :-
ip: "xxx.xxx.xxx.xxx" type: "ipv4" continent_code: "AF" continent_name: "Africa" country_code: "KE" country_name: "Kenya" region_code: "30" region_name: "Nairobi Area" city: "Nairobi" zip: 00001 ...... sea more
To install :
composer require drongotech/iplocationmanager
php artisan vendor:publish --tag=dt-config
php artisan vendor:publish --tag=dt-migrations
php artisan migrate
Add anywhere on your project to log the ip data using:-
use Drongotech\Events\Iplocationmanager\LogIpEvent;
LogIpEvent::dispatch([]);
统计信息
- 总下载量: 35
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-07-17