mohebifar/date-time-bundle
A Symfony bundle that provides date and time form types with picker integration, making it easier to add date/time inputs and handle DateTime values cleanly in PHP applications.
DateTime in the domain model, push calendar-aware formatting to the presentation layer, and expose date entry as a first-class form type. That is the pattern to cite when scoping a Persian/Jalali, Hijri, or other calendar-first market expansion, regardless of whether the code is adopted.FormType is a concrete argument that date-entry widgets and locale-aware formatting should be a reusable platform capability rather than something each feature team re-implements. Use it to justify funding a shared form-type / design-system investment instead of per-team date pickers.symfony/form and bundle bootstrapping that Laravel does not use, so the Datepicker half is effectively dead code and installation risks composer conflicts with modern symfony/* components. The PM decision this drives is do not shortlist as a dependency; evaluate extraction or a maintained alternative instead.Consider it only if all of the following hold:
Intl/ICU-based formatter or a current calendar-conversion library).Look elsewhere in essentially every other case:
FormType and bundle plumbing have no native analogue. No amount of bundle quality fixes that.IntlDateFormatter and maintained calendar libraries (morilog/jalali, hekmatinasser/verta) cover locale-aware formatting and Gregorian↔Jalali conversion without a framework-specific coupling cost. Compare the cost of extracting this package's logic against simply adopting one of those — the package is only worth mining if it supports a calendar they do not.Net: the problem is real and worth a roadmap line; the package is not the vehicle.
To executives: This is a small, single-purpose Symfony2 bundle for rendering dates in non-Gregorian calendars and providing a matching datepicker field. It is a useful illustration of a real customer need — calendar localization for our target markets — but it is not a candidate for adoption: it targets an end-of-life framework, has negligible adoption, and carries no maintenance or security guarantees. It also does not fit our Laravel stack, where its form widget cannot run without pulling in Symfony components we don't use. Recommendation: treat it as research input, not a dependency, and fund a small platform-level date/time localization capability as part of the regional-expansion workstream.
To engineering: The design instinct is right — keep DateTime in the domain model, push calendar formatting to the presentation layer, and expose date entry as a first-class, reusable form component. Copy that separation; don't copy the code. If we greenfield this, we own it: use IntlDateFormatter for locale/calendar formatting, isolate calendar conversion behind an interface, write tests for leap years, month-length variation, and year boundaries, make timezone and locale explicit arguments, and ship the input widget as a client-side component wired through our shared front-end/Blade components. Compare the extraction spike (1–3 days to audit and isolate the pure conversion code) against adopting a maintained conversion library first; the budget is small and contained — this is a platform task, not a framework migration.
Risk statement in one line: Adopting this package converts a formatting problem into a maintenance and security-ownership problem on an EOL framework with no community and no Laravel fit — high cost, low upside.
How can I help you explore Laravel packages today?