date-time
Date and time library for PHP (by brick)
fig-standards
Standards either proposed or approved by the Framework Interop Group (by php-fig)
Our great sponsors
date-time | fig-standards | |
---|---|---|
8 | 47 | |
317 | 12,509 | |
0.6% | 0.0% | |
8.7 | 7.7 | |
4 days ago | about 16 hours ago | |
PHP | ||
MIT License | GNU General Public License v3.0 or later |
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.
date-time
Posts with mentions or reviews of date-time.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-10-18.
-
PHP libraries and tools
brick/date-time: Date and time library for PHP
brick/date-time: Date and time library for PHP
-
Feedback about fresh open source project
If you're happy to bring in another library, you could replace your Date VO class with the LocalDate class from the brick/datetime library. It does the same thing, just has three int fields inside instead of a string in Y-m-d format.
-
Which native PHP features do you regret not knowing about/adapting earlier?
If you need to store subsets of a date-time-timezone combination, then take a look at brick/date-time instead.
-
Symfony is creating a component Clock to decouples applications from the system clock
Slightly related but https://github.com/brick/date-time is a wonderful library to manage datetime concepts in a proper way.
-
civil-date-time: a civil date/time library for PHP
Looks like a CivilDate is the same thing that brick/date-time calls a LocalDateTime. Does this library have any advantages over the one from Brick?
-
Do you use a DateTime wrapper?
I like https://github.com/brick/date-time
-
Stopping time with PHP
It is a good practice to use an interface to manage the clock in an application, as it allows having full control of time. For example, it eases testing, as it lets us define the concrete time for each test. Frank de Jonge and Matthias Noback have blog posts about it, brick has an implementation, and there is even a PSR proposal to have a ClockInterface.
fig-standards
Posts with mentions or reviews of fig-standards.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-07.
- Moving PHP forward through collaboration and standards
-
A workaround to handle PSR-4 && WordPress Coding Standards at same time
The namespaces and class names must follow this example.
-
Materials/Topics for Senior dev new to PHP
I would familiarize yourself with the following PHP standards: https://www.php-fig.org
-
Autoloading, coding standards and file structure in WordPress plugin development
The PHP Standard Recommendation, or PSR for short, from the aforementioned PHP-FIG.
- PHP-FIG considering raising money to cover $30/year costs
- PHP-FIG planning to raise money to cover $30/year costs
-
PSR-4 Autoloading Woes
That's what happens if you use a PSR-4 autoloader and not utilise PSR-4 in your project structure π So either use PSR-0 or properly use PSR-4.
- PHPDoc, PSR-5 and commenting inside the code
- PHP-Fig Is Down
-
I donβt get all the hate for PHP and at this point I am too afraid to ask.
PHP really "got it's act together" in my view when packagist and composer (which are PHP's equivalent of npm) became mainstream and with the release of the PSR community standards. We were admittedly a little behind the curve with regards to package managers but with standardised formats and not having to copy and paste zip file libraries anymore, PHP received a new lease of life.
What are some alternatives?
When comparing date-time and fig-standards you can also consider the following projects:
psalm-plugin - Provides an `ALL-IN-ONE` plugin for Psalm
sulu - Core framework that implements the functionality of the Sulu content management system
phpunit-speedtrap - Reports on slow-running tests in your PHPUnit test suite
laravel-totem - Manage Your Laravel Schedule From A Web Dashboard
flow - Flow PHP - data processing framework
Symfony - The Symfony PHP framework
calendar - π PHP Date & Time library that solves common problems in object oriented, immutable way.
headless-wp-starter - πͺ WordPress + React Starter Kit: Spin up a WordPress-powered React app in one step
Carbon - A simple PHP API extension for DateTime.
Brick\Money - A money and currency library for PHP
messenger-kit
app - Yii3 application template
date-time vs psalm-plugin
fig-standards vs sulu
date-time vs phpunit-speedtrap
fig-standards vs laravel-totem
date-time vs flow
fig-standards vs Symfony
date-time vs calendar
fig-standards vs headless-wp-starter
date-time vs Carbon
fig-standards vs Brick\Money
date-time vs messenger-kit
fig-standards vs app