php-standard-library/date-time
Immutable, timezone-aware DateTime types for PHP. Provides Duration, Period, and Interval helpers for safer date/time arithmetic and ranges, designed as a standard-library style package with clear docs and contribution links.
Period/Interval types for subscription billing logic.DateTime for user-facing deadlines (e.g., "Order ships in 3 days").Duration for tracking ETL pipeline execution times.luxon or date-fns).date-fns or day.js).For Executives:
"This package eliminates date/time bugs that cost us [X] hours/year in support (e.g., timezone miscalculations in invoices). By standardizing immutable DateTime types, we reduce compliance risks—critical for [regulatory deadline]. It’s a lightweight, MIT-licensed alternative to custom code or paid APIs, with a roadmap aligned to PHP 9+."
For Engineering:
*"Swap ad-hoc strtotime() calls for this library’s Duration/Interval types to:
Period::months(3) vs. manual +90 days).DateTime::in('America/New_York')).Period vs. Carbon’s CarbonPeriod, but worth it for edge cases like ‘last business day of Q2.’"*How can I help you explore Laravel packages today?