PHPackages                             uz/yii2-momentjs - 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. uz/yii2-momentjs

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

uz/yii2-momentjs
================

MomentJS asset for Yii2

v1.0.2(8y ago)128.3k↓31.9%1MITPHP

Since Oct 18Pushed 8y ago2 watchersCompare

[ Source](https://github.com/mronx/yii2-momentjs)[ Packagist](https://packagist.org/packages/uz/yii2-momentjs)[ Docs](https://github.com/mronx/yii2-momentjs)[ RSS](/packages/uz-yii2-momentjs/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

moment asset for Yii2
=====================

[](#moment-asset-for-yii2)

Provides the asset bundle for easy integration of [moment](http://momentjs.com/) into your Yii2 application.

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

[](#installation)

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

Either run

```
composer require --prefer-dist "uz/yii2-momentjs:*"
```

or add

```
"uz/yii2-momentjs": "*"

```

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

Usage
-----

[](#usage)

In the view file register the asset:

```
// Register only core momentjs with no locale data
\uz\momentjs\MomentJsAsset::register($this);

// Register core momentjs with current app locale. Current locale is activated on DOM ready.
\uz\momentjs\MomentJsLocaleAsset::register($this);

// Register core momentjs with all locales supported by the momentjs.
\uz\momentjs\MomentJsAllLocalesAsset::register($this);
```

License
-------

[](#license)

The MIT License. Please see [License File](LICENSE.md) for more information.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Total

3

Last Release

3181d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

yii2yiimomentmomentjs

### Embed Badge

![Health badge](/badges/uz-yii2-momentjs/health.svg)

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

###  Alternatives

[brussens/yii2-maintenance-mode

Maintenance mode component for Yii framework 2.x.x version.

78263.0k5](/packages/brussens-yii2-maintenance-mode)

PHPackages © 2026

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