PHPackages                             sudo/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. sudo/timezone

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

sudo/timezone
=============

Timezone List

1.0.0(5y ago)02MITPHP

Since Jul 24Pushed 5y agoCompare

[ Source](https://github.com/Sudo-E-Commerce/timezone)[ Packagist](https://packagist.org/packages/sudo/timezone)[ RSS](/packages/sudo-timezone/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Hướng dẫn sử dụng Timezone
--------------------------

[](#hướng-dẫn-sử-dụng-timezone)

Đây là một package dùng nhỏ dùng để cấu hình lại thời gian của hệ thống. Dữ liệu sẽ được lưu tại bảng `settings` với `key` là `timezone` và `value` là múi giờ VD: Asia/Ho\_Chi\_minh

### Demo cách hiển thị để chọn tại module Setting

[](#demo-cách-hiển-thị-để-chọn-tại-module-setting)

```
// themes/default/src/Http/Controllers/Admin/SettingController.php
// $this->models = new \Sudo\Theme\Models\Setting;
public function general(Request $requests) {
	...
    if (isset($requests->redirect)) {
        if (isset($requests->timezone) && !empty($requests->timezone)) {
            \Timezone::saveTimezone($requests->timezone);
            unset($requests['timezone']);
        }
    }
    ...
    $form = new Form;
    $timezone = $this->models->where('key', 'timezone')->first();
    $form->select('timezone', $timezone->value ?? config('app.timezone'), 0, 'Múi giờ', \Timezone::ListDataArray());
    ...
}

```

- Chúng ta sẽ dùng form select để hiển thị và chọn
- Chúng ta sẽ dùng `\Timezone::saveTimezone($requests->timezone);` để lưu giá trị `timezone` vào bảng `settings`
- Lấy ra sẽ query vào `settings` với `key` là `timezone` để lấy ra giá trị value

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

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

Unknown

Total

1

Last Release

2124d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3fae158f0bdfab51fba69937e810ed2db9f11a04eef301fd0c82cb568081ff86?d=identicon)[sudoedev](/maintainers/sudoedev)

---

Top Contributors

[![hieunvph04479](https://avatars.githubusercontent.com/u/36782331?v=4)](https://github.com/hieunvph04479 "hieunvph04479 (2 commits)")

### Embed Badge

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

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

###  Alternatives

[2amigos/yii2-grid-view-library

GridView Widget Extensions for Yii2.

56147.2k12](/packages/2amigos-yii2-grid-view-library)[kolyunya/yii2-map-input-widget

Yii2 map input widget. Allows you to select geographcal coordinates via a human-friendly inteface.

2836.3k4](/packages/kolyunya-yii2-map-input-widget)[pantheon-systems/wordpress-composer

WordPress for Pantheon with a composer.json file.

13127.3k7](/packages/pantheon-systems-wordpress-composer)[tivie/command

An utility library that harmonizes OS differences and executes external programs in a safer way

1455.3k1](/packages/tivie-command)[jfcherng-roundcube/show-folder-size

A Roundcube plugin which shows folder size.

2515.2k](/packages/jfcherng-roundcube-show-folder-size)[supervisorphp/event

Listen to Supervisor events in PHP

1442.4k](/packages/supervisorphp-event)

PHPackages © 2026

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