glhd/laravel-timezone-mapper
最新稳定版本:1.4.0
Composer 安装命令:
composer require glhd/laravel-timezone-mapper
包简介
Timezone mapper for Laravel
关键字:
README 文档
README
This package maps coordinates to a timezone string. Based heavily on TimezoneMapperPHP and LatLongToTimezone and adopted for use in a Laravel project.
It's not likely to be 100% correct every time, but if you need to map lots of coordinates and don't want to make API calls each time, it's a good way to get reasonable defaults.
Usage:
$mapped_timezone = TimezoneMapper::mapCoordinates( latitude: 51.50853, longitude: -0.12574, fallback: 'America/New_York', // Optional -- used if unable to map coords ); // Returns "Europe/London"
统计信息
- 总下载量: 223.91k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 44
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-07-31