jmrashed / geolocation
geolocation 包将提供用户位置信息
v1.0.6
2022-04-06 18:47 UTC
README
Laravel 包,用于获取给定 IP 地址的区域、城市和国家详细信息。它还提供用户位置的详细信息。
简介
- geolocation 包将提供用户位置信息。
- 它将提供用户位置信息。
安装
composer require jmrashed/geolocation
已发布包
php artisan vendor:publish --provider="Jmrashed\Geolocation\GeolocationServiceProvider" --tag='geolocation'
用法
$geolocation->getLocation($latitude, $longitude); $geolocation->getLocationByIp($ip);
示例
$geolocation = new GeolocationController(); $geolocation->getLocation($latitude, $longitude);
许可
MIT
作者
Rashed Zaman
仓库
https://github.com/jmrashed/geolocation
贡献者
Rashed Zaman
变更日志
v1.0.0 - Initial release.