A PHP date library for parsing, validating, manipulating, and formatting dates with internationalization (i18n) support.
Moment.php is a PHP library for parsing, validating, manipulating, and formatting dates and times. It provides a fluent, chainable API inspired by moment.js, making complex date operations—like adding time intervals, switching timezones, and formatting dates in multiple languages—simple and intuitive. It solves the problem of cumbersome native PHP date handling by offering a more developer-friendly interface.
PHP developers who need robust date and time manipulation, especially those working on internationalized applications requiring localized date formatting and timezone management.
Developers choose Moment.php for its moment.js-like API, extensive locale support, and comprehensive feature set that simplifies date handling beyond PHP's native DateTime class. Its chainable methods and flexibility in formatting and manipulation save development time and reduce errors.
Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js
Supports over 30 locales for localized date formatting and relative times, including Arabic, Chinese, and German, as listed in the README.
Provides a fluent, moment.js-inspired interface allowing methods like addDays(7)->subtractHours(2) to be chained for easy manipulation.
Allows easy switching of timezones and setting default timezones globally, with examples for CET and UTC conversions in the README.
Includes parsing multiple formats (ISO8601, RFC, MySQL), validation, period calculations, calendar times, and start/end of units, covering most common operations.
The maintainer has publicly stated time constraints and is seeking someone to take over, risking unaddressed bugs or lack of updates for long-term projects.
As a wrapper over PHP's DateTime, it adds abstraction that may impact performance in date-intensive applications compared to direct native usage.
While it supports PHP 5.3+, it may not fully leverage newer PHP features or optimizations, such as strict typing or immutable defaults in recent versions.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.