PHPackages                             xypp/flarum-localize-date-lib - 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. xypp/flarum-localize-date-lib

ActiveFlarum-extension[Utility &amp; Helpers](/categories/utility)

xypp/flarum-localize-date-lib
=============================

Datezone configure and date event lib

v1.0.1(1y ago)11.7k↓50%3MITPHP

Since Sep 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/zxy19/flarum-localize-date-lib)[ Packagist](https://packagist.org/packages/xypp/flarum-localize-date-lib)[ RSS](/packages/xypp-flarum-localize-date-lib/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (3)

Localize Date Lib
=================

[](#localize-date-lib)

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667) [![Latest Stable Version](https://camo.githubusercontent.com/bab28a049fbeb08a5707d244529b8387128bf14814d6bd4e904818026dce349c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f787970702f666c6172756d2d6c6f63616c697a652d646174652d6c69622e737667)](https://packagist.org/packages/xypp/flarum-localize-date-lib) [![Total Downloads](https://camo.githubusercontent.com/a81cbed16afeebf5efd65a4a92264a0daea341ae927c8d64666dcfa251160d1f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f787970702f666c6172756d2d6c6f63616c697a652d646174652d6c69622e737667)](https://packagist.org/packages/xypp/flarum-localize-date-lib)

A [Flarum](http://flarum.org) extension. Datezone configure and date event lib

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

[](#installation)

As normal user, You will never have to install the extension manually.

Develop
-------

[](#develop)

### Frontend

[](#frontend)

The timezone will be serialized to forum model on attribute `xypp.localize-date.timezone`.

You can use our export function to get some value

- toServerTimezone
- serverDateChangeAt

### Backend

[](#backend)

Use IOC to get the helper `CarbonZoneHelper`

```
$newCarbonObj = $helper->z($carbonObj);//set timezone to the carbon object

$now = $helper->now();//get current time in target timezone
```

Event `DateChangeEvent` will trigger in 00:xx:xx every day.

It's not guaranteed that the event will be triggered at exactly which minute or second.

Links
-----

[](#links)

- [Packagist](https://packagist.org/packages/xypp/flarum-localize-date-lib)
- [GitHub](https://github.com/zxy19/flarum-localize-date-lib)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity40

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

Total

2

Last Release

594d ago

### Community

Maintainers

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

---

Top Contributors

[![zxy19](https://avatars.githubusercontent.com/u/23428495?v=4)](https://github.com/zxy19 "zxy19 (3 commits)")

---

Tags

flarum

### Embed Badge

![Health badge](/badges/xypp-flarum-localize-date-lib/health.svg)

```
[![Health](https://phpackages.com/badges/xypp-flarum-localize-date-lib/health.svg)](https://phpackages.com/packages/xypp-flarum-localize-date-lib)
```

###  Alternatives

[fof/byobu

Well integrated, advanced private discussions.

61105.8k9](/packages/fof-byobu)[fof/user-bio

Add a user bio to user profiles

2196.5k9](/packages/fof-user-bio)[fof/links

Manage Flarum primary navbar menu links

39118.3k2](/packages/fof-links)[fof/drafts

Allow users to create post and discussion drafts

1771.1k5](/packages/fof-drafts)[fof/nightmode

Add a Night Mode option for your users to use on your Flarum forum

3774.5k2](/packages/fof-nightmode)[fof/best-answer

Mark a post as the best answer in a discussion

26135.2k15](/packages/fof-best-answer)

PHPackages © 2026

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