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

Project Samples

Project Activity

See All Activity >

Categories

Code Formatters

License

MIT License

Follow moment.php

moment.php Web Site

You Might Also Like
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of moment.php!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Code Formatters

Registered

2023-04-25