PHPackages                             rupertchen/php-named-time-offset - 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. rupertchen/php-named-time-offset

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

rupertchen/php-named-time-offset
================================

PHP library for named time offsets

05PHP

Since Feb 6Pushed 12y agoCompare

[ Source](https://github.com/rupertchen/php-named-time-offset)[ Packagist](https://packagist.org/packages/rupertchen/php-named-time-offset)[ RSS](/packages/rupertchen-php-named-time-offset/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

php-named-time-offset
=====================

[](#php-named-time-offset)

PHP library for named time offsets

What This Is
------------

[](#what-this-is)

A library providing a mapping from named time offsets (e.g., Pacific Standard Time, Pacific Daylight Time) to integer IDs for more efficient storing and to their common abbreviations for convenient display.

What This Is Not
----------------

[](#what-this-is-not)

This is not a library for determining timezones or handling their changing offsets. It does not have any dependency on the \[timezone database\] [tzdata](http://en.wikipedia.org/wiki/Tz_database).

Why This Is Needed
------------------

[](#why-this-is-needed)

It may be desirable to allow a user to enter time in a specific time offset and remember which offset for later display. Although abbreviations are the most common way for people to work with offsets, they are not unique. The full offset names are unique, but they are verbose and inefficient for storage.

This library attempts to address the issue by providing unique numeric constants for storage mapped to full names and abbreviations for display.

How To Run The Tests
--------------------

[](#how-to-run-the-tests)

From the command line, run:

```
$ ./bin/phpunit

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c527d7846f36e1e206f54c3a991f9004c24d4ea80d4e4aaa140adfe840536da7?d=identicon)[rupertchen](/maintainers/rupertchen)

---

Top Contributors

[![rupertchen](https://avatars.githubusercontent.com/u/246359?v=4)](https://github.com/rupertchen "rupertchen (12 commits)")

### Embed Badge

![Health badge](/badges/rupertchen-php-named-time-offset/health.svg)

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

###  Alternatives

[alexsabur/orchid-editorjs-field

A orchid editorjs field

1327.4k](/packages/alexsabur-orchid-editorjs-field)

PHPackages © 2026

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