tplaner/when
tplaner/when is a PHP library for recurring dates and times. It generates schedules, calculates occurrences, and supports natural-language recurrence rules, making it useful for calendars, reminders, bookings, and event planning.
tplaner/when is a framework-agnostic PHP date-recursion library, so it can fit a Laravel application as a domain/service dependency rather than an Eloquent or controller concern. It is best used for recurrence calculation—e.g., “next occurrence of a custom schedule”—not as a replacement for Laravel’s scheduler. Wrap it behind an application-owned interface such as RecurrenceCalculator to avoid leaking package types across the codebase.next_run_at; backfill or recompute only after validation. Cut over by schedule type, starting with low-risk reminders or reports before billing-critical flows.next_run_at strategy. 4) Pilot one low-risk schedule class. 5) Roll out with monitoring and fallback. 6) If the spike fails, substitute an RRULE-capable library or implement a narrower internal calculator rather than forcing adoption.next_run_at, and cap evaluation horizons. Avoid calculating long recurrence ranges synchronously in request paths.next_run_at values. Mitigate with bounded iteration, validation, idempotent job design, and monitoring for schedule lag and recurrence errors.How can I help you explore Laravel packages today?