2017 © Pedro Peláez
 

library google-time-zone

A PHP wrapper for the Google Maps TimeZone API.

image

imelgrat/google-time-zone

A PHP wrapper for the Google Maps TimeZone API.

  • Thursday, March 29, 2018
  • by imelgrat
  • Repository
  • 3 Watchers
  • 6 Stars
  • 34,500 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 4 Versions
  • 32 % Grown

The README.md

google-time-zone

GitHub license GitHub release Total Downloads GitHub issues GitHub stars, (*1)

A PHP wrapper for the Google Maps TimeZone API., (*2)

The Google Maps Time Zone API provides a simple interface to request the time zone for a location on the earth, as well as that location's time offset from UTC., (*3)

The API provides time offset data for any locations on Earch. Requests for the time zone information are made for a specific latitude/longitude pair and timestamp., (*4)

The class automates the query process and returns the name of that time zone (in different languages), the time offset from UTC, and the daylight savings offset in a user-selectable format (XML or JSON)., (*5)

Developed by Ivan Melgrati, (*6)

======= A PHP wrapper for the Google Maps Time Zone API., (*7)

Developed by Ivan Melgrati Twitter, (*8)

Requirements

  • PHP >= 5.3.0
  • In order to be able to use this class, it's necessary to provide an API key or, for business clients, Client ID and signing key.

Installation

Composer

The recommended installation method is through Composer, a dependency manager for PHP. Just add imelgrat/google-time-zone to your project's composer.json file:, (*9)

{
    "require": {
        "imelgrat/google-time-zone": "*"
    }
}

More details can be found over at Packagist., (*10)

Manually

  1. Copy src/GoogleMapsTimeZone.php to your codebase, perhaps to the vendor directory.
  2. Add the GoogleMapsTimeZone class to your autoloader or require the file directly.

Then, in order to use the GoogleMapsTimeZone class, you need to invoke the "use" operator to bring the class into skope., (*11)

setApiKey(API_KEY);
    
    // Perform query 
    $timezone_data = $timezone_object->queryTimeZone();
    
    echo '
';
    print_r($timezone_data);
    echo '
'; ?>

Feedback

Please open an issue to request a feature or submit a bug report. Or even if you just want to provide some feedback, I'd love to hear. I'm also available on Twitter as @imelgrat., (*12)

Contributing

  1. Fork it.
  2. Create your feature branch (git checkout -b my-new-feature).
  3. Commit your changes (git commit -am 'Added some feature').
  4. Push to the branch (git push origin my-new-feature).
  5. Create a new Pull Request.

The Versions

29/03 2018

dev-master

9999999-dev https://github.com/imelgrat/google-time-zone

A PHP wrapper for the Google Maps TimeZone API.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

google maps timezone map location gmaps gmap time zone

25/02 2018

1.4.0

1.4.0.0 https://github.com/imelgrat/google-time-zone

A PHP wrapper for the Google Maps TimeZone API.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

google maps timezone map location gmaps gmap time zone

16/02 2017

1.3.1

1.3.1.0 https://github.com/imelgrat/google-time-zone

A PHP wrapper for the Google Maps Time Zone API.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

google maps timezone map location gmaps gmap time zone

13/09 2016

1.2.0

1.2.0.0 https://github.com/imelgrat/google-time-zone

A PHP wrapper for the Google Maps TimeZone API.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

google maps map location gmaps gmap time zone timeze