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

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

madand/yii2-momentjs
====================

moment asset for Yii2

411.2k4PHP

Since Nov 19Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)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 "madand/yii2-momentjs:*"
```

or add

```
"madand/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
\madand\momentjs\MomentJsAsset::register($this);

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

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

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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/6896398cbe16a390aab9b2bff1b6d993b9304c1783d4b7ef48ab89b47ddedf93?d=identicon)[MadAnd](/maintainers/MadAnd)

---

Top Contributors

[![madand](https://avatars.githubusercontent.com/u/2280844?v=4)](https://github.com/madand "madand (5 commits)")[![SAP55](https://avatars.githubusercontent.com/u/3145919?v=4)](https://github.com/SAP55 "SAP55 (2 commits)")

### Embed Badge

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

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

###  Alternatives

[junohamburg/kirby-reload-on-save

Kirby Reload On Save

293.4k](/packages/junohamburg-kirby-reload-on-save)

PHPackages © 2026

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