{"id":21977995,"url":"https://github.com/ozziexsh/friendlytimezone","last_synced_at":"2025-10-26T07:05:36.867Z","repository":{"id":41872856,"uuid":"74050033","full_name":"ozziexsh/friendlytimezone","owner":"ozziexsh","description":"🕒 User friendly php timezones","archived":false,"fork":false,"pushed_at":"2023-09-11T12:54:32.000Z","size":54,"stargazers_count":12,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-28T16:58:32.120Z","etag":null,"topics":["laravel","php","timezone"],"latest_commit_sha":null,"homepage":"","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/ozziexsh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-11-17T17:17:54.000Z","updated_at":"2023-09-20T23:35:09.000Z","dependencies_parsed_at":"2025-04-28T16:48:27.913Z","dependency_job_id":"dc355a39-b193-48d2-8bf7-77355064abc0","html_url":"https://github.com/ozziexsh/friendlytimezone","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/ozziexsh/friendlytimezone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozziexsh%2Ffriendlytimezone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozziexsh%2Ffriendlytimezone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozziexsh%2Ffriendlytimezone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozziexsh%2Ffriendlytimezone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ozziexsh","download_url":"https://codeload.github.com/ozziexsh/friendlytimezone/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozziexsh%2Ffriendlytimezone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281069515,"owners_count":26438642,"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","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["laravel","php","timezone"],"created_at":"2024-11-29T16:17:13.889Z","updated_at":"2025-10-26T07:05:36.840Z","avatar_url":"https://github.com/ozziexsh.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# User-friendly timezones for PHP \n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/nehero/friendlytimezone.svg?style=flat-square)](https://packagist.org/packages/nehero/friendlytimezone)\n[![Total Downloads](https://img.shields.io/packagist/dt/nehero/friendlytimezone.svg?style=flat-square)](https://packagist.org/packages/nehero/friendlytimezone)\n[![Tests](https://github.com/ozziexsh/friendlytimezone/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/ozziexsh/friendlytimezone/actions/workflows/run-tests.yml)\n\nList extracted from [Microsoft Time Zone Index Values](https://support.microsoft.com/en-ca/kb/973627).\n\nSome regions influenced by [this Stack Overflow answer](http://stackoverflow.com/a/12473225).\n\n\u003e ⚠️ This package has been rewritten in version 3 to support more flexibility of working with the timezones as well as incorporating modern php features \n\u003e\n\u003e[If you are looking for the now deprecated version 2 documentation, click here](https://github.com/ozziexsh/friendlytimezone/tree/2.0.1)\n\n## Installation\n\nAs of v3.0 this package requires PHP 8.0+\n\nYou can install the package via composer:\n\n```bash\ncomposer require nehero/friendlytimezone\n```\n\n## Usage\n\n```php\n// Illuminate\\Support\\Collection of Nehero\\Timezone\n$timezones = Nehero\\FriendlyTimezone\\FriendlyTimezone::timezones();\n\n// properties available to you\nforeach ($timezones as $timezone) {\n    echo $timezone-\u003efriendlyName; // Saskatchewan (string)\n    echo $timezone-\u003etimezone; // America/Regina (string)\n    echo $timezone-\u003eoffset; // -6 (int|float)\n    echo $timezone-\u003egetFormattedOffset(); // -6:00 (string)\n}\n\n// common formatting for dropdowns\n$timezones-\u003emap(fn ($tz) =\u003e [\n    'label' =\u003e \"(UTC{$tz-\u003egetFormattedOffset()}) {$tz-\u003efriendlyName}\"), // (UTC+6:00) Saskatchewan\n    'value' =\u003e $tz-\u003etimezone, // America/Regina\n]);\n\n// need it in descending order?\n// can manipulate it however you want with\n// common collection or native array/iterable functions\n$timezones-\u003esortByDesc(fn ($tz) =\u003e $tz-\u003eoffset)-\u003emap(...);\n```\n\n## Supported Timezones\n\nSee any missing? Pull requests and issues are welcome!\n\n\u003cdetails\u003e\n  \u003csummary\u003eClick to view a table of all currently supported timezones\u003c/summary\u003e\n\n| IANA Name | Friendly Name                                          |\n|-----------|--------------------------------------------------------|\n| Pacific/Midway | Midway Island, Samoa                                   |\n| Pacific/Honolulu | Hawaii                                                 |\n| America/Anchorage | Alaska                                                 |\n| America/Tijuana | Pacific Time (US and Canada); Tijuana, Baja California |\n| America/Edmonton | Mountain Time (US and Canada)                          |\n| America/Chihuahua | Chihuahua, La Paz, Mazatlan                            |\n| America/Phoenix | Arizona                                                |\n| America/Chicago | Central Time (US and Canada)                           |\n| America/Regina | Saskatchewan                                           |\n| America/Mexico_City | Guadalajara, Mexico City, Monterrey                    |\n| America/Managua | Central America                                        |\n| America/New_York | Eastern Time (US and Canada)                           |\n| America/Indiana/Indianapolis | Indiana (East)                                         |\n| America/Bogota | Bogota, Lima, Quito                                    |\n| America/Caracas | Caracas                                                |\n| America/Halifax | Atlantic Time (Canada)                                 |\n| America/Argentina/San_Juan | Georgetown, La Paz, San Juan                           |\n| America/Santiago | Santiago                                               |\n| America/Manaus | Manaus                                                 |\n| America/Asuncion | Asuncion                                               |\n| America/St_Johns | Newfoundland                                           |\n| America/Sao_Paulo | Brasilia                                               |\n| America/Argentina/Buenos_Aires | Buenos Aires, Georgetown                               |\n| America/Godthab | Greenland                                              |\n| America/Montevideo | Montevideo                                             |\n| Atlantic/South_Georgia | Mid-Atlantic                                           |\n| Atlantic/Azores | Azores                                                 |\n| Atlantic/Cape_Verde | Cape Verde Islands                                     |\n| Europe/London | Greenwich Mean Time: Dublin, Edinburgh, Lisbon, London |\n| Atlantic/Reykjavik | Monrovia, Reykjavik                                    |\n| Africa/Casablanca | Casablanca                                             |\n| UTC | Coordinated Universal Time                             |\n| Europe/Belgrade | Belgrade, Bratislava, Budapest, Ljubljana, Prague      |\n| Europe/Sarajevo | Sarajevo, Skopje, Warsaw, Zagreb                       |\n| Europe/Paris | Brussels, Copenhagen, Madrid, Paris                    |\n| Europe/Berlin | Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna       |\n| Africa/Lagos | West Central Africa                                    |\n| Asia/Amman | Amman                                                  |\n| Asia/Beirut | Beirut                                                 |\n| Africa/Cairo | Cairo                                                  |\n| Europe/Minsk | Minsk                                                  |\n| Europe/Helsinki | Helsinki, Kiev, Riga, Sofia, Tallinn, Vilnius          |\n| Europe/Athens | Athens, Bucharest, Istanbul                            |\n| Asia/Jerusalem | Jerusalem                                              |\n| Africa/Harare | Harare, Pretoria                                       |\n| Africa/Windhoek | Windhoek                                               |\n| Europe/Moscow | Moscow, St. Petersburg, Volgograd                      |\n| Asia/Kuwait | Kuwait, Riyadh                                         |\n| Africa/Nairobi | Nairobi                                                |\n| Asia/Baghdad | Baghdad                                                |\n| Asia/Tbilisi | Tbilisi                                                |\n| Asia/Tehran | Tehran                                                 |\n| Asia/Muscat | Abu Dhabi, Muscat                                      |\n| Asia/Baku | Baku, Tbilisi, Yerevan                                 |\n| Asia/Yerevan | Yerevan                                                |\n| Indian/Mauritius | Port Louis                                             |\n| Asia/Kabul | Kabul                                                  |\n| Asia/Yekaterinburg | Ekaterinburg                                           |\n| Asia/Tashkent | Tashkent                                               |\n| Asia/Karachi | Islamabad, Karachi                                     |\n| Asia/Kolkata | Chennai, Kolkata, Mumbai, New Delhi                    |\n| Asia/Kathmandu | Kathmandu                                              |\n| Asia/Dhaka | Astana, Dhaka                                          |\n| Asia/Colombo | Sri Jayawardenepura                                    |\n| Asia/Almaty | Almaty, Novosibirsk                                    |\n| Asia/Rangoon | Yangon (Rangoon)                                       |\n| Asia/Bangkok | Bangkok, Hanoi, Jakarta                                |\n| Asia/Krasnoyarsk | Krasnoyarsk                                            |\n| Asia/Hong_Kong | Beijing, Chongqing, Hong Kong, Urumqi                  |\n| Asia/Kuala_Lumpur | Kuala Lumpur, Singapore                                |\n| Asia/Taipei | Taipei                                                 |\n| Australia/Perth | Perth                                                  |\n| Asia/Irkutsk | Irkutsk, Ulaanbaatar                                   |\n| Asia/Seoul | Seoul                                                  |\n| Asia/Tokyo | Osaka, Sapporo, Tokyo                                  |\n| Asia/Yakutsk | Yakutsk                                                |\n| Australia/Darwin | Darwin                                                 |\n| Australia/Adelaide | Adelaide                                               |\n| Australia/Sydney | Canberra, Melbourne, Sydney                            |\n| Australia/Brisbane | Brisbane                                               |\n| Australia/Hobart | Hobart                                                 |\n| Asia/Vladivostok | Vladivostok                                            |\n| Pacific/Guam | Guam, Port Moresby                                     |\n| Asia/Magadan | Magadan, Solomon Islands, New Caledonia                |\n| Pacific/Fiji | Fiji, Kamchatka, Marshall Is.                          |\n| Pacific/Auckland | Auckland, Wellington                                   |\n| Asia/Kamchatka | Petropavlovsk-Kamchatsky                               |\n| Pacific/Tongatapu | Nuku'alofa                                             |\n\u003c/details\u003e\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nIf you have a better suggestion for any of the mapped regions, please submit a pull request and include accurate sources for the changes.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fozziexsh%2Ffriendlytimezone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fozziexsh%2Ffriendlytimezone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fozziexsh%2Ffriendlytimezone/lists"}