Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js. PHP 5.3 or later since moment.php is based on php's DateTime Class. You can now inject different format handling by passing along a class that implements the FormatsInterface. You can find an example within the test folder for implementing all formats from moment.js. The immutable mode makes all modification methods call cloning() implicitly before applying their modifications.
Features
- Date library for parsing, manipulating and formatting dates w/ i18n
- PHP 5.3 or later since moment.php is based on php's DateTime Class
- Easy install via composer
- Switch locale
- Many accepted date formats
- Formats are based on PHP's Date function and DateTime class
Categories
Code FormattersLicense
MIT LicenseFollow moment.php
You Might Also Like
With the world of work changed forever, it’s essential to manage your workplace and assets together to effectively create a high-performing environment. The Eptura experience combines the power of workplace management software with asset management, enabling you to effectively operate your building and facilitate hybrid work.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of moment.php!