New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

glhd/laravel-timezone-mapper

Timezone mapper for Laravel
474,200 47
Install
composer require glhd/laravel-timezone-mapper
Latest Version:1.5.0
PHP:>=8.1
Laravel:4 – 13
License:MIT
Last Updated:Mar 23, 2026
Links: GitHub  ·  Packagist
Maintainer: inxilpro

Laravel Timezone Mapper

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"

Related Packages

camroncade/timezone

Helps manage timezones in Laravel. Includes <select> form builder for timezones.

1,103,308 159
jamesmills/laravel-timezone

Timezone storage and retrieval for Laravel

856,379 694
nirajp/timezone

Helps manage timezones in Laravel. Includes <select> form builder for timezones....

22,311 0
zaengle/timezone

Helps manage timezones in Laravel.

3,758 0
rvwoens/laravel-timezone

Timezone storage and retrieval for Laravel, for GAE

2,159 0

Version History

Version Released PHP Laravel License
1.5.0 >=8.1 * MIT
1.4.0 >=7.1.3 * MIT
1.3.0 >=7.1.3 5.8.*|^6.0|^7.0|^8.0|^9.0 MIT
1.2.0 >=7.1.3 5.8.*|^6.0|^7.0|^8.0 MIT
1.1.0 >=7.1.3 5.8.*|^6.0|^7.0 MIT