PHPackages                             moment/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. [Localization &amp; i18n](/categories/localization)
4. /
5. moment/moment

ActiveComponent[Localization &amp; i18n](/categories/localization)

moment/moment
=============

Parse, validate, manipulate, and display dates in JavaScript.

2.30.1(2y ago)47.9k2.1M↓47.1%7.0k[171 issues](https://github.com/moment/moment/issues)[51 PRs](https://github.com/moment/moment/pulls)20MITJavaScriptCI passing

Since Jul 7Pushed 3w ago823 watchersCompare

[ Source](https://github.com/moment/moment)[ Packagist](https://packagist.org/packages/moment/moment)[ Docs](https://github.com/moment/moment)[ RSS](/packages/moment-moment/feed)WikiDiscussions develop Synced 2w ago

READMEChangelog (1)Dependencies (1)Versions (104)Used By (20)

[Moment.js](https://momentjs.com/)
==================================

[](#momentjs)

[![NPM version](https://camo.githubusercontent.com/6b4775dfaed9178fb9773ef7fcdacb7188b4ddbe197a8874daef6f636688a1be/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f6d6f6d656e742e7376673f7374796c653d666c6174)](https://npmjs.org/package/moment)[![NPM downloads](https://camo.githubusercontent.com/988c3d483e895fab2d5ff03d22dc34fa338d9b832c4f6fd949dba323f44d3190/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f646d2f6d6f6d656e742e7376673f7374796c653d666c6174)](https://npmcharts.com/compare/moment?minimal=true)[![MIT License](https://camo.githubusercontent.com/f48f8d6cf609f5b181b9c3218a85175fe8a5809c7ea400347f39697a5d55065d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c6174)](LICENSE)[![Coverage Status](https://camo.githubusercontent.com/4b3bd3e9ef5e90b72961587863399404737ec95d1dcbdc96789823a0fb7fec6b/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6d6f6d656e742f6d6f6d656e742f62616467652e7376673f6272616e63683d646576656c6f70)](https://coveralls.io/r/moment/moment?branch=develop)

A JavaScript date library for parsing, validating, manipulating, and formatting dates.

> ⚠️ Moment.js is a legacy project, now in **maintenance mode**. In most cases, you should choose a different library. For more details and recommendations, please see [Project Status](https://momentjs.com/docs/#/-project-status/) in the docs.

*Thank you.*

Resources
---------

[](#resources)

- [Documentation](https://momentjs.com/docs/)
- [Changelog](CHANGELOG.md)
- [Stack Overflow](https://stackoverflow.com/questions/tagged/momentjs)

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

[](#installation)

If you still need to use Moment.js, you can install it using a package manager like npm, yarn, or bun.

```
npm install moment
```

License
-------

[](#license)

Moment.js is freely distributable under the terms of the [MIT license](LICENSE).

###  Health Score

73

—

ExcellentBetter than 100% of packages

Maintenance62

Regular maintenance activity

Popularity80

Widely adopted with strong download metrics

Community60

Healthy contributor diversity

Maturity80

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~158 days

Total

64

Last Release

964d ago

Major Versions

2.18.1 → 3.x-dev2017-08-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/61b83b9dcc22b826692fdaf4c7107f8b57f0be1ea1c673b1c322e73fab2fa877?d=identicon)[ichernev](/maintainers/ichernev)

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

---

Top Contributors

[![ichernev](https://avatars.githubusercontent.com/u/757060?v=4)](https://github.com/ichernev "ichernev (1363 commits)")[![timrwood](https://avatars.githubusercontent.com/u/643885?v=4)](https://github.com/timrwood "timrwood (807 commits)")[![icambron](https://avatars.githubusercontent.com/u/244988?v=4)](https://github.com/icambron "icambron (220 commits)")[![marwahaha](https://avatars.githubusercontent.com/u/2541209?v=4)](https://github.com/marwahaha "marwahaha (101 commits)")[![TracyGJG](https://avatars.githubusercontent.com/u/4346753?v=4)](https://github.com/TracyGJG "TracyGJG (35 commits)")[![mattjohnsonpint](https://avatars.githubusercontent.com/u/1396388?v=4)](https://github.com/mattjohnsonpint "mattjohnsonpint (33 commits)")[![ashsearle](https://avatars.githubusercontent.com/u/1166814?v=4)](https://github.com/ashsearle "ashsearle (31 commits)")[![caillou](https://avatars.githubusercontent.com/u/46739?v=4)](https://github.com/caillou "caillou (23 commits)")[![mbad0la](https://avatars.githubusercontent.com/u/8503331?v=4)](https://github.com/mbad0la "mbad0la (20 commits)")[![Xotic750](https://avatars.githubusercontent.com/u/216041?v=4)](https://github.com/Xotic750 "Xotic750 (17 commits)")[![Alanscut](https://avatars.githubusercontent.com/u/21104054?v=4)](https://github.com/Alanscut "Alanscut (16 commits)")[![nrbgt](https://avatars.githubusercontent.com/u/7581399?v=4)](https://github.com/nrbgt "nrbgt (16 commits)")[![kruyvanna](https://avatars.githubusercontent.com/u/1171793?v=4)](https://github.com/kruyvanna "kruyvanna (14 commits)")[![jbleduigou](https://avatars.githubusercontent.com/u/1489214?v=4)](https://github.com/jbleduigou "jbleduigou (14 commits)")[![mergehez](https://avatars.githubusercontent.com/u/16548877?v=4)](https://github.com/mergehez "mergehez (12 commits)")[![weldan](https://avatars.githubusercontent.com/u/121695?v=4)](https://github.com/weldan "weldan (12 commits)")[![timfish](https://avatars.githubusercontent.com/u/1150298?v=4)](https://github.com/timfish "timfish (12 commits)")[![mrtnjrrtt](https://avatars.githubusercontent.com/u/3829159?v=4)](https://github.com/mrtnjrrtt "mrtnjrrtt (12 commits)")[![kkopanidis](https://avatars.githubusercontent.com/u/9095396?v=4)](https://github.com/kkopanidis "kkopanidis (11 commits)")[![vnathalye](https://avatars.githubusercontent.com/u/14007809?v=4)](https://github.com/vnathalye "vnathalye (11 commits)")

---

Tags

i18nl10nformattimedatevalidateparsemomentender

### Embed Badge

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

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

###  Alternatives

[timrwood/moment

Parse, validate, manipulate, and display dates in JavaScript.

47.9k19.5k](/packages/timrwood-moment)[fightbulc/moment

Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js

9673.5M13](/packages/fightbulc-moment)[jenssegers/date

A date library to help you work with dates in different languages

1.8k11.6M85](/packages/jenssegers-date)[symfony/intl

Provides access to the localization data of the ICU library

2.6k218.6M1.5k](/packages/symfony-intl)[punic/punic

PHP-Unicode CLDR

1543.1M34](/packages/punic-punic)[gettext/languages

gettext languages with plural rules

7533.5M12](/packages/gettext-languages)

PHPackages © 2026

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