Download the PHP package spatie/google-time-zone without Composer
On this page you can find all versions of the php package spatie/google-time-zone. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
All versions of google-time-zone with dependencies
Informations about the package google-time-zone
Get the time zone used at the given coordinates
This package can convert GPS coordinates to time zones using Google's Time Zone service. Here's a quick example:
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
You can install this package through composer.
Though the package works fine in non-Laravel projects we've included some niceties for our fellow Artisans.
In Laravel will autoregister the package itself, but you should still publish the config file yourself.
This is the content of the config file:
Here's how you can get the time zone for a given set of coordinates.
You can get the result back in a specific language.
It is possible to specify a timestamp for the location so that daylight savings can be taken into account. We will set this timestamp to the current time by default.
If you are using the package with Laravel, you can simply call
When no time zone was found
null will be returned.
You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.
Our address is: Spatie, Kruikstraat 22, 2018 Antwerp, Belgium.
We publish all received postcards on our company website.
- Ruben Van Assche
- All Contributors
The MIT License (MIT). Please see License File for more information.