PHPackages                             eggnukes/yii2-moment - 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. eggnukes/yii2-moment

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

eggnukes/yii2-moment
====================

Moment.js and Moment Timezone assets for Yii2

v1.0.1(5y ago)01.2kBSD-3-ClausePHP

Since May 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/eggnukes/yii2-moment)[ Packagist](https://packagist.org/packages/eggnukes/yii2-moment)[ Docs](https://github.com/eggnukes/yii2-moment)[ RSS](/packages/eggnukes-yii2-moment/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Moment.js Assets for Yii2
=========================

[](#momentjs-assets-for-yii2)

[Moment.js](https://momentjs.com/) and [Moment Timezone](https://momentjs.com/timezone/) assets for Yii2.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist eggnukes/yii2-moment "*"

```

or add

```
"eggnukes/yii2-moment": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Register the needed asset in your view file:

```
\eggnukes\moment\MomentAsset::register($this);
```

```
\eggnukes\moment\MomentWithLocaleAsset::register($this);
```

```
\eggnukes\moment\MomentTimezoneAsset::register($this);
```

MomentTimezoneAsset depends on MomentWithLocaleAsset by default.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Total

2

Last Release

2176d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/59cec75cd19e96b0294fe00f5fb028e2335aaf30a2db881debfbc2ad1863f7c3?d=identicon)[eggnukes](/maintainers/eggnukes)

---

Top Contributors

[![eggnukes](https://avatars.githubusercontent.com/u/29884750?v=4)](https://github.com/eggnukes "eggnukes (6 commits)")

---

Tags

datetimeyii2extensionmomentmomentjs

### Embed Badge

![Health badge](/badges/eggnukes-yii2-moment/health.svg)

```
[![Health](https://phpackages.com/badges/eggnukes-yii2-moment/health.svg)](https://phpackages.com/packages/eggnukes-yii2-moment)
```

###  Alternatives

[kartik-v/yii2-widget-datetimepicker

Enhanced Yii2 wrapper for the bootstrap datetimepicker plugin (sub repo split from yii2-widgets)

1036.5M47](/packages/kartik-v-yii2-widget-datetimepicker)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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