ISO-codes
date-time
Our great sponsors
ISO-codes | date-time | |
---|---|---|
1 | 8 | |
787 | 317 | |
- | 0.6% | |
2.9 | 8.7 | |
2 months ago | 5 days ago | |
PHP | PHP | |
GNU General Public License v3.0 only | MIT License |
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.
ISO-codes
-
PHP libraries and tools
ronanguilloux/isocodes: PHP library - Validators for standards from ISO, International Finance, Public Administrations, GS1, Manufacturing Industry, Phone numbers & Zipcodes for many countries
date-time
-
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?
Respect Validation - The most awesome validation engine ever created for PHP
psalm-plugin - Provides an `ALL-IN-ONE` plugin for Psalm
DMS Filter - Library that offers Input Filtering based on Annotations for use with Objects. Check out 2.dev for 2.0 pre-release.
phpunit-speedtrap - Reports on slow-running tests in your PHPUnit test suite
Valitron - Valitron is a simple, elegant, stand-alone validation library with NO dependencies
flow - Flow PHP - data processing framework
Linio Input - Abstracts HTTP request input handling, providing an easy interface for data hydration and validation
calendar - 📅 PHP Date & Time library that solves common problems in object oriented, immutable way.
MetaYaml - A powerful schema validator!
Carbon - A simple PHP API extension for DateTime.
PHP validate - Lightweight and feature-rich PHP validation and filtering library. Support scene grouping, pre-filtering, array checking, custom validators, custom messages. 轻量且功能丰富的PHP验证、过滤库。支持场景分组,前置过滤,数组检查,自定义验证器,自定义消息。
messenger-kit