plain-to-class
Class-transformer to transform your data into a typed object (by yzen-dev)
date-time
Date and time library for PHP (by brick)
plain-to-class | date-time | |
---|---|---|
1 | 8 | |
166 | 318 | |
- | 0.9% | |
7.4 | 8.7 | |
6 months ago | 18 days ago | |
PHP | PHP | |
- | 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.
plain-to-class
Posts with mentions or reviews of plain-to-class.
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
yzen.dev/plain-to-class: Class-transformer to transform your data into a typed object
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.
What are some alternatives?
When comparing plain-to-class and date-time you can also consider the following projects:
Porter - :lipstick: Durable and asynchronous data imports for consuming data at scale and publishing testable SDKs.
psalm-plugin - Provides an `ALL-IN-ONE` plugin for Psalm
Ardent - A Collections library for PHP.
phpunit-speedtrap - Reports on slow-running tests in your PHPUnit test suite
Zend Serializer
flow - Flow PHP - data processing framework
Ginq - `LINQ to Object` inspired DSL for PHP
calendar - 📅 PHP Date & Time library that solves common problems in object oriented, immutable way.
Totem - Changeset calculator between two states of a data
Carbon - A simple PHP API extension for DateTime.
PHP Collections - General Purpose Collection Library for PHP
messenger-kit
plain-to-class vs Porter
date-time vs psalm-plugin
plain-to-class vs Ardent
date-time vs phpunit-speedtrap
plain-to-class vs Zend Serializer
date-time vs flow
plain-to-class vs Ginq
date-time vs calendar
plain-to-class vs Totem
date-time vs Carbon
plain-to-class vs PHP Collections
date-time vs messenger-kit