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.

Please rate this library. Is it a good library?

All versions of google-time-zone with dependencies

Informations about the package google-time-zone

Get the time zone used at the given coordinates

Latest Version run-tests Check & fix styling Total Downloads

This package can convert GPS coordinates to time zones using Google's Time Zone service. Here's a quick example:

Support us

We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.

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.

Installation

You can install this package through composer.

Laravel installation

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:

Usage

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 getTimeZoneForCoordinates.

When no time zone was found null will be returned.

Postcardware

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.

Credits

License

The MIT License (MIT). Please see License File for more information.


Version
Requires php Version ^7.2|^8.0
illuminate/support Version ^6.0|^7.0|^8.0
guzzlehttp/guzzle Version ^6.5|^7.0
ext-json Version *

The package spatie/google-time-zone contains the following files

Loading the files please wait ....