glhd/laravel-timezone-mapper

Timezone mapper for Laravel
384,509 47
Install
composer require glhd/laravel-timezone-mapper
Latest Version:1.5.0
PHP:>=8.1
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

jamesmills/laravel-timezone

Timezone storage and retrieval for Laravel

810,509 695
yurtesen/geonames

Geonames importer and models for Eloquent ORM

1,674 31
jackiedo/timezonelist

A small package use to create a timezone list box in Laravel

675,017 110
alexeymezenin/laravel-gmt-timezones

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

956 1
avanoz/tmzn

Demo package to show time

1 0