PHPackages                             joy2362/php-time-zone - 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. joy2362/php-time-zone

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

joy2362/php-time-zone
=====================

A simple package that provide list of all timezone that php support

v1.3.0(1y ago)162.0k1MITPHPPHP &gt;=7.2

Since Jan 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/joy2362/php-time-zone)[ Packagist](https://packagist.org/packages/joy2362/php-time-zone)[ Docs](https://github.com/joy2362/php-time-zone)[ RSS](/packages/joy2362-php-time-zone/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (7)Used By (0)

Php-Time-Zone
=============

[](#php-time-zone)

[![Latest Version](https://camo.githubusercontent.com/b0b73b39ef7662d86d33d589e4a7ba4b446c15281663d6844611cae65beb92e7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6a6f79323336322f7068702d74696d652d7a6f6e652e7376673f7374796c653d666c61742d737175617265)](https://github.com/jessedp/php-timezones/releases)[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/9ff071ae8ea778b42bb1a82d10c01a45580aca7d3e76a732ffa0ad7b1c09ad5d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6f79323336322f7068702d74696d652d7a6f6e652f6261646765732f6275696c642e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/joy2362/php-time-zone/build-status/main)[![Total Downloads](https://camo.githubusercontent.com/30b3c29e279b66359cbf09786d191da93e4e657f5108ea2449df4cf770f6cb58/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6f79323336322f7068702d74696d652d7a6f6e652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/joy2362/php-time-zone)

A wrapper to enumerate PHP 7.x, 8.x timezones list.

Basics
------

[](#basics)

- Creates timezone arrays based on PHP's supported timezones with optional grouping by region
- Lists are sorted by offset from high (+14:00) to low (-11:00)
- Return as php arrays for whatever use your heart desires

Installation
------------

[](#installation)

You can install this package using [Composer](https://getcomposer.org).

```
$ composer require joy2362/php-time-zone
```

Publish config file:

```
$ php artisan vendor:publish --provider="Joy2362\PhpTimezone\PhpTimeZoneServiceProvider" --tag="config"
```

Config
------

[](#config)

NameDefaultDescriptionDEFAULT\_TIME\_ZONE'GMT'label start value support 'GMT' and 'UTC'TIME\_DIFF\_SYMBOL'.'seperator between time different hour and minutesLABEL\_FIELD\_NAME'label'timezone list array key name for labelVALUE\_FIELD\_NAME'value'timezone list array key name for valueUsage
-----

[](#usage)

### 1. Get all timezone list with label and value pair

[](#1-get-all-timezone-list-with-label-and-value-pair)

```
TimeZone::list();
```

### 2. Get all timezone list only value

[](#2-get-all-timezone-list-only-value)

```
TimeZone::listWithoutLabel();
```

### 3. Get all timezone list only label

[](#3-get-all-timezone-list-only-label)

```
TimeZone::listWithoutValue();
```

### 4. Get timezone list by a region

[](#4-get-timezone-list-by-a-region)

```
TimeZone::listByRegion('Asia');
```

### 5. Get timezone label from value

[](#5-get-timezone-label-from-value)

```
TimeZone::getLabelFromValue('Asia/Dhaka');
```

### 6. Get timezone value from label

[](#6-get-timezone-value-from-label)

```
TimeZone::getValueFromLabel('(GMT +06.00) Asia/Dhaka');
```

### 7. Get region list

[](#7-get-region-list)

```
TimeZone::getRegions();
```

### 8. Get supported zone list

[](#8-get-supported-zone-list)

```
TimeZone::getSupportedTimeZone();
```

Changelog
---------

[](#changelog)

Please see [Changelog](./CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Pull requests are more than welcome. You must follow the PSR coding standards.

Security
--------

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

Thanks to
---------

[](#thanks-to)

This is based off some lovely work by:

-

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~124 days

Recently: every ~155 days

Total

6

Last Release

582d ago

Major Versions

v1.3.0 → 2.0.x-dev2024-10-13

PHP version history (2 changes)v1.0.0PHP ^7.2.5|^8.0

1.3.x-devPHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/2a33522c3112acfaf0b88e3074f3584f1144b0215ee41e49530ad025ed6ad3df?d=identicon)[joy2362](/maintainers/joy2362)

---

Top Contributors

[![joy2362](https://avatars.githubusercontent.com/u/49846472?v=4)](https://github.com/joy2362 "joy2362 (14 commits)")

---

Tags

laravellaravel-packagephpphp-timezonelaraveltimezonephp-time-zone

### Embed Badge

![Health badge](/badges/joy2362-php-time-zone/health.svg)

```
[![Health](https://phpackages.com/badges/joy2362-php-time-zone/health.svg)](https://phpackages.com/packages/joy2362-php-time-zone)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[glhd/laravel-timezone-mapper

Timezone mapper for Laravel

45284.4k](/packages/glhd-laravel-timezone-mapper)[tapp/filament-timezone-field

Filament timezone field.

55276.6k4](/packages/tapp-filament-timezone-field)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)

PHPackages © 2026

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