PHPackages                             yongtiger/timezone - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. yongtiger/timezone

ActivePhp[Utility &amp; Helpers](/categories/utility)

yongtiger/timezone
==================

v0.0.3(9y ago)0911MITPHPPHP &gt;=5.5

Since Mar 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/yongtiger/timezone)[ Packagist](https://packagist.org/packages/yongtiger/timezone)[ Docs](http://www.branbook.cc)[ RSS](/packages/yongtiger-timezone/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (5)Used By (1)

Timezone v0.0.3 (public static function timezone\_format)
=========================================================

[](#timezone-v003-public-static-function-timezone_format)

[![Latest Stable Version](https://camo.githubusercontent.com/f79fc04fe62b080adac47776716f8ffc3033789acd1c18a453c878e020ce0c46/68747470733a2f2f706f7365722e707567782e6f72672f796f6e6774696765722f74696d657a6f6e652f762f737461626c65)](https://packagist.org/packages/yongtiger/timezone)[![Total Downloads](https://camo.githubusercontent.com/c3b6310c7378bbb003a76a37d88ee6c59ee11709a994344354ec727a128ab2cd/68747470733a2f2f706f7365722e707567782e6f72672f796f6e6774696765722f74696d657a6f6e652f646f776e6c6f616473)](https://packagist.org/packages/yongtiger/timezone)[![Latest Unstable Version](https://camo.githubusercontent.com/0b8cb3cc70329bd3b70901786c13ec750185ca3307be021c6229c42eca3777c9/68747470733a2f2f706f7365722e707567782e6f72672f796f6e6774696765722f74696d657a6f6e652f762f756e737461626c65)](https://packagist.org/packages/yongtiger/timezone)[![License](https://camo.githubusercontent.com/6b3b430d09bf54b3a0ac3d0c4befc3a58f818140fc276f0703eae3d8e06abcbb/68747470733a2f2f706f7365722e707567782e6f72672f796f6e6774696765722f74696d657a6f6e652f6c6963656e7365)](https://packagist.org/packages/yongtiger/timezone)

FEATURES
--------

[](#features)

USAGE
-----

[](#usage)

- Usecase #1: using sort flags

```
$tzs = TimeZone::timezone_list(TimeZone::SORT_BY_OFFSET);
```

- This will generate an array looking like:

```
[Pacific/Midway] => (UTC-11:00) Pacific/Midway
[Pacific/Pago_Pago] => (UTC-11:00) Pacific/Pago_Pago
[Pacific/Niue] => (UTC-11:00) Pacific/Niue
[Pacific/Honolulu] => (UTC-10:00) Pacific/Honolulu
[Pacific/Fakaofo] => (UTC-10:00) Pacific/Fakaofo
...

```

- Usecase #2: customized your own `static::$timezones`

```
TimeZone::$timezones = DateTimeZone::listIdentifiers();
$tzs = TimeZone::timezone_list();
```

- Usecase #3: using output format template

```
$tzs = TimeZone::timezone_list(TimeZone::SORT_BY_OFFSET, '(GMT{offset_prefix}{offset_formatted}) {timezone}');
$tzs = TimeZone::timezone_list(TimeZone::SORT_BY_OFFSET, '(GMT{offset_prefix}{offset_formatted})');
$tzs = TimeZone::timezone_list(TimeZone::SORT_BY_OFFSET, '(UTC{offset_prefix}{offset}) - {timezone}');
```

- Usecase #4: using timezone output format template

```
echo TimeZone::timezone_format($timeZone)
```

NOTES
-----

[](#notes)

DOCUMENTS
---------

[](#documents)

SEE ALSO
--------

[](#see-also)

-
-
-
-
-
-
-

TODO
----

[](#todo)

[Development roadmap](docs/development-roadmap.md)
--------------------------------------------------

[](#development-roadmap)

LICENSE
-------

[](#license)

**Timezone** is released under the MIT license, see [LICENSE](https://opensource.org/licenses/MIT) file for details.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

3392d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4419bd4781ece5b372f87972d5559c6a9ff305d8600fcf99409ce072922b9771?d=identicon)[yongtiger](/maintainers/yongtiger)

---

Tags

timezone

### Embed Badge

![Health badge](/badges/yongtiger-timezone/health.svg)

```
[![Health](https://phpackages.com/badges/yongtiger-timezone/health.svg)](https://phpackages.com/packages/yongtiger-timezone)
```

###  Alternatives

[brick/date-time

Date and time library

3623.6M94](/packages/brick-date-time)[jamesmills/laravel-timezone

Timezone storage and retrieval for Laravel

696779.9k13](/packages/jamesmills-laravel-timezone)[camroncade/timezone

Helps manage timezones in Laravel. Includes &lt;select&gt; form builder for timezones.

1591.0M9](/packages/camroncade-timezone)[jackiedo/timezonelist

A small package use to create a timezone list box in Laravel

110625.7k1](/packages/jackiedo-timezonelist)[dater/dater

Compact PHP library for working with date/time in different formats &amp; timezones.

14283.6k](/packages/dater-dater)[tapp/filament-timezone-field

Filament timezone field.

56325.0k7](/packages/tapp-filament-timezone-field)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
