Description
moment.php is a PHP library for parsing, validating, manipulating and displaying dates, with i18n support. It is inspired by moment.js. The library is built on PHP's DateTime class and needs PHP 5.3 or later, with no other dependencies. You install it with Composer. The README shows how to get a moment, which date input formats it accepts, and how to switch locale. The default locale can be changed, and the project ships locale files for many languages, including Arabic, German, Spanish, French, Italian, Japanese and Dutch. The README also includes a note from the author. Time is the main constraint, so merging pull requests can be slow, and the author is open to passing the project on to someone with more time and motivation. The source is public on GitHub, and the project keeps a changelog.…
Highlights
- Parse, validate, manipulate and format dates in PHP
- Localization with locale files for many languages
- Built on PHP's DateTime class with no extra dependencies
- Installs with Composer
Ratings & Reviews
No ratings yet
Be the first to rate Moment.php.
People also visit

@handsontable/pikaday
A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS
Moment.php FAQ
What is moment.php?
A date library for PHP that parses, manipulates and formats dates with i18n support, inspired by moment.js.
Does it have dependencies?
The README lists none beyond PHP. It is based on PHP's DateTime class and needs PHP 5.3 or later.
How do I install it?
Install it with Composer, as the README describes.
Is it still maintained?
The author says time is limited, so pull requests can take a while, and is open to handing the project to someone who has more time.
Which languages are supported?
The README lists locale files for many languages, and you can switch the locale in your code.
What are the best Moment.php alternatives?
Popular alternatives to Moment.php include Zebra_Datepicker, ICal and Vanilla Calendar Pro. See all Moment.php alternatives









