oh/date-extra-validator-bundle
A Symfony bundle adding extra date validation constraints to the standard validator. It enforces additional date checks in forms and entities via familiar constraint annotations, filling gaps when built-in date rules aren't enough. A small, focused package for more flexible date validation.
after, after_or_equal, before, before_or_equal, date_format) and modern Symfony (Date/DateTime with min/max). With 4 stars, 0 dependents, and a maturity score of 0.08, this is not a buy — at most, a reference implementation.DateTimeImmutable comparisons, close the item as "not needed."Consider it only when all of the following hold:
Date/DateTime constraints expose min/max natively.Look elsewhere if:
DateTimeImmutable comparison is clearer and testable with zero supply-chain surface.To executives: There is no purchase and no vendor contract here — it is a small MIT-licensed Symfony2 add-on with negligible adoption (4 stars, 0 dependents). Our recommendation is not to adopt it as a dependency. The capability it provides — rejecting dates outside a min/max window — is already built into the frameworks we use or is cheap to implement in-house. Adopting it adds maintenance and supply-chain risk in exchange for saving perhaps a day of engineering, and it would be a poor fit in a Laravel codebase.
To engineering: This bundle overlaps almost entirely with what you already have. In Laravel, use after/before/after_or_equal/before_or_equal and date_format, or wrap them in a small DateBetween rule backed by Carbon if you want reusable, testable semantics and better messages. In current Symfony, use the native date constraints with min/max. Only if we are pinned to a legacy Symfony2 app should this come up at all — and even then, read the validator, port the ~100 lines into a first-party constraint, and keep the tests in our repo. Do not add it to composer.json on a greenfield or Laravel project.
The one-line ask: fund roughly one day of engineering to implement date-range validation natively (or confirm native rules suffice), and close the "evaluate third-party date validator" item as not needed.
How can I help you explore Laravel packages today?