{"id":21076458,"url":"https://github.com/imelgrat/google-time-zone","last_synced_at":"2025-05-16T06:32:18.968Z","repository":{"id":56990319,"uuid":"67509426","full_name":"imelgrat/google-time-zone","owner":"imelgrat","description":"A PHP wrapper for the Google Maps Time Zone API.","archived":false,"fork":false,"pushed_at":"2019-01-28T17:40:00.000Z","size":1197,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T08:31:48.876Z","etag":null,"topics":["composer","find","google-api","google-maps","google-maps-api","google-maps-services","php","php-wrapper","time-zone","time-zones","timezone","utc","zone-api"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imelgrat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-06T13:12:12.000Z","updated_at":"2019-06-25T01:29:51.000Z","dependencies_parsed_at":"2022-08-21T10:10:53.057Z","dependency_job_id":null,"html_url":"https://github.com/imelgrat/google-time-zone","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imelgrat%2Fgoogle-time-zone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imelgrat%2Fgoogle-time-zone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imelgrat%2Fgoogle-time-zone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imelgrat%2Fgoogle-time-zone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imelgrat","download_url":"https://codeload.github.com/imelgrat/google-time-zone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225413333,"owners_count":17470565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","find","google-api","google-maps","google-maps-api","google-maps-services","php","php-wrapper","time-zone","time-zones","timezone","utc","zone-api"],"created_at":"2024-11-19T19:28:31.601Z","updated_at":"2024-11-19T19:28:32.296Z","avatar_url":"https://github.com/imelgrat.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"google-time-zone\n==================\n\n[![GitHub license](https://img.shields.io/github/license/imelgrat/google-time-zone.svg?style=flat-square)](https://github.com/imelgrat/google-time-zone/blob/master/LICENSE)\n[![GitHub release](https://img.shields.io/github/release/imelgrat/google-time-zone.svg?style=flat-square)](https://github.com/imelgrat/google-time-zone/releases)\n[![Total Downloads](https://poser.pugx.org/imelgrat/google-time-zone/downloads)](https://packagist.org/packages/imelgrat/google-time-zone)\n[![GitHub issues](https://img.shields.io/github/issues/imelgrat/google-time-zone.svg?style=flat-square)](https://github.com/imelgrat/google-time-zone/issues)\n[![GitHub stars](https://img.shields.io/github/stars/imelgrat/google-time-zone.svg?style=flat-square)](https://github.com/imelgrat/google-time-zone/stargazers)\n\nA PHP wrapper for the Google Maps TimeZone API. \n\nThe 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.\n\nThe 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. \n\nThe 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).\n\n\nDeveloped by [Ivan Melgrati](https://imelgrat.me)\n \n=======\nA PHP wrapper for the Google Maps Time Zone API.\n\nDeveloped by [Ivan Melgrati](https://imelgrat.me) [![Twitter](https://img.shields.io/twitter/url/https/github.com/imelgrat/tab-collapse.svg?style=social)](https://twitter.com/imelgrat)\n\nRequirements\n------------\n\n*   PHP \u003e= 5.3.0\n*   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.\n\nInstallation\n------------\n\n### Composer\n\nThe recommended installation method is through\n[Composer](http://getcomposer.org/), a dependency manager for PHP. Just add\n`imelgrat/google-time-zone` to your project's `composer.json` file:\n\n```json\n{\n    \"require\": {\n        \"imelgrat/google-time-zone\": \"*\"\n    }\n}\n```\n\n[More details](http://packagist.org/packages/imelgrat/google-time-zone) can be found over at [Packagist](http://packagist.org).\n\n### Manually\n\n1.  Copy `src/GoogleMapsTimeZone.php` to your codebase, perhaps to the `vendor`\n    directory.\n2.  Add the `GoogleMapsTimeZone` class to your autoloader or `require` the file\n    directly.\n\t\n\nThen, in order to use the GoogleMapsTimeZone class, you need to invoke the \"use\" operator to bring the class into skope.\n\n```php\n\u003c?php\n    use imelgrat\\GoogleMapsTimeZone\\GoogleMapsTimeZone;\n\trequire_once ('../src/GoogleMapsTimeZone.php');\n    \n    /**\n     * All queries require an API key from Google\n     * @link https://developers.google.com/maps/documentation/timezone/get-api-key\n     * */\n\tdefine('API_KEY', 'YOUR API KEY HERE');\n\n\t// Initialize GoogleMapsTimeZone object (New York City coordinates)\n\t$timezone_object = new GoogleMapsTimeZone(40.730610, -73.935242, 0, GoogleMapsTimeZone::FORMAT_JSON);\n    \n    // Set Google API key\n\t$timezone_object-\u003esetApiKey(API_KEY);\n    \n    // Perform query \n\t$timezone_data = $timezone_object-\u003equeryTimeZone();\n\t\n\techo '\u003cpre\u003e';\n\tprint_r($timezone_data);\n\techo '\u003c/pre\u003e';\n?\u003e\n```\n\nFeedback\n--------\n\nPlease open an issue to request a feature or submit a bug report. Or even if\nyou just want to provide some feedback, I'd love to hear. I'm also available on\nTwitter as [@imelgrat](https://twitter.com/imelgrat).\n\nContributing\n------------\n\n1.  Fork it.\n2.  Create your feature branch (`git checkout -b my-new-feature`).\n3.  Commit your changes (`git commit -am 'Added some feature'`).\n4.  Push to the branch (`git push origin my-new-feature`).\n5.  Create a new Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimelgrat%2Fgoogle-time-zone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimelgrat%2Fgoogle-time-zone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimelgrat%2Fgoogle-time-zone/lists"}