fresh/datetime
Fresh DateTime adds convenient, expressive date and time handling to Laravel and PHP applications. It simplifies parsing, formatting, comparing, and manipulating dates, with timezone-aware helpers and a clean, chainable API for everyday scheduling and timestamp tasks.
app/Support/DateHelper.php that three teams have edited, this is a credible target for replacing hand-rolled helpers with a versioned, tested dependency — which is a maintainability decision, not a feature decision.diffForHumans). Do not use it to justify deferring a broader "consolidate our date handling" initiative — it is additive, not foundational.Adopt when:
DateTimeImmutable and/or Carbon, and you have a specific, enumerable list of missing helpers (range objects, interval math, day/month difference, calendar predicates).DateMath facade or interface) so swapping to Carbon, nesbot/carbon, or in-house code later is a one-file change.Look elsewhere when:
rlanvin/php-rrule, spatie/opening-hours, or sabre/vobject instead.Watch item before committing: pin the version, confirm the release cadence holds (the January 2026 release is a positive signal), and confirm the maintainer responds to issues. Because dependents are at zero, you are an early adopter — budget a fork under MIT as the standing contingency rather than as an emergency measure.
To executives (30 seconds): This is a small, MIT-licensed utility library that handles the tedious parts of date arithmetic — ranges, intervals, business days, calendar checks. It replaces hand-written helper code that is a recurring source of subtle bugs, at the cost of a single lightweight dependency. It is not a platform commitment: it is small enough to fork or remove in a day, so the downside is bounded and the upside is engineering days returned to the roadmap.
To engineering (the real argument): It fills gaps that Carbon and DateTimeImmutable deliberately leave open, without asking you to change how you handle dates today. Framework-agnostic, no service provider magic, no opinion about your models. Adopt it behind a thin internal interface so the rest of the codebase never imports it directly — that keeps the exit cost at roughly zero and keeps the decision reversible.
Risk framing to name out loud: low adoption (~18 stars, 0 dependents) and a single maintainer. Mitigations are cheap and should be stated upfront — version pinning, source review before merge, an internal wrapper, and a standing fork option. A PM who names this risk and prices the mitigation at hours, not weeks, is making a stronger case than one who omits it.
How can I help you explore Laravel packages today?