Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Date Extra Validator Bundle Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Stack-fit gate before any adoption decision. This is a Symfony2 bundle, not a Laravel package. The first product decision it informs is a routing one: are we evaluating for a legacy Symfony2 surface, or a Laravel/plain-PHP build? For Laravel, the answer is "reference only, do not depend."
  • Build vs. buy for a commodity rule. Min/max date validation is roughly 20–40 lines in any PHP app and is native in Laravel (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.
  • Feature scoping for date-bounded flows. It is useful as a requirements checklist: booking and reservation windows, coupon/promotion validity, trial and subscription expiry, age-gate and compliance cutoffs, event ticketing deadlines, SLA enforcement, and reporting-period filters. Those are the real user-facing features where date bounds are an acceptance criterion.
  • Roadmap prioritization. If date-range validation is on the roadmap, it is small, low-risk work — not sprint-worthy. If the capability already exists via native rules or inline DateTimeImmutable comparisons, close the item as "not needed."
  • Risk-register entry. Zero dependents + Symfony2-only + near-zero community signal = abandonment risk. Any decision to depend on it must be paired with a plan to vendor/fork the logic internally.
  • Talent and maintenance framing. Adopting a Symfony2 bundle in a Laravel shop creates an ongoing explanation tax with no capability upside, which is a poor use of engineering attention regardless of the code's quality.

When to Consider This Package

Consider it only when all of the following hold:

  • You maintain a legacy Symfony 2.x application on an old PHP runtime that cannot upgrade to a Symfony version whose Date/DateTime constraints expose min/max natively.
  • You have a concrete, recurring need for inclusive/exclusive min/max date boundaries enforced through the validator service and form types — not ad-hoc controller checks.
  • You are willing to vendor or fork the code, because upstream maintenance is effectively absent.
  • The cost of writing a first-party constraint (including review and tests) would exceed the cost of reading and porting this small bundle.

Look elsewhere if:

  • You are on Laravel. Native rules already cover this with no third-party dependency, no licensing exposure, and no maintenance burden. This package is not the answer.
  • You are on modern Symfony. Bounds are handled natively; adding a bundle is pure dependency debt.
  • You are on plain PHP or a micro-framework. A direct DateTimeImmutable comparison is clearer and testable with zero supply-chain surface.
  • You need timezone-aware, business-calendar, holiday, or time-of-day semantics. This is a date-boundary validator, not a scheduling library.
  • Your team requires an actively maintained dependency with a security response path and release cadence. This does not meet that bar.

How to Pitch It (Stakeholders)

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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib