Moment.php
Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js (by fightbulc)
Carbon
A simple PHP API extension for DateTime. (by briannesbitt)
Our great sponsors
Moment.php | Carbon | |
---|---|---|
0 | 18 | |
968 | 16,421 | |
- | - | |
8.5 | 9.3 | |
30 days ago | 8 days ago | |
PHP | PHP | |
GNU General Public License v3.0 or later | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Moment.php
Posts with mentions or reviews of Moment.php.
We have used some of these posts to build our list of alternatives
and similar projects.
We haven't tracked posts mentioning Moment.php yet.
Tracking mentions began in Dec 2020.
Carbon
Posts with mentions or reviews of Carbon.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-11-19.
-
PHP: check dates
Carbon is probably one of the most popular vendors to handle dates in PHP.
- Ask HN: What are some of the most elegant codebases in your favorite language?
-
The Wonderful Carbon - Laravel
At first we go to https://carbon.nesbot.com/ Here we will see a lot of interesting information and go deeper into it See also https://github.com/briannesbitt/Carbon
-
Do you use a DateTime wrapper?
See: https://github.com/briannesbitt/Carbon/issues/1693
-
New Tutorial: Using PHP Composer in the WordPress Ecosystem
In this version of the Hello Dolly plugin, the plugin shows the date and hour before the lyrics. To do this, the plugin calls on the Carbon library, a dependency of the Laravel illuminate/support library.
-
How date and time work in Laravel using `nesbot/carbon` package
From the About section of nesbot/carbon package on GitHub:
-
ISO 8601: the better date format
The way this is usually handled in general use is pretty simple, use Carbon - which is now a composer dependency of pretty much everything as a matter of course.
What are some alternatives?
When comparing Moment.php and Carbon you can also consider the following projects:
Chronos - A standalone DateTime library originally based off of Carbon
Yasumi - The easy PHP Library for calculating holidays
CalendR - The missing PHP 5.3+ calendar management library.
ExpressiveDate - A fluent extension to PHPs DateTime class.
Duration for PHP - Working with durations made easy
period - PHP's time range API