borsaco/jalali-date-time
Convert dates between Gregorian and Jalali (Shamsi/Hijri Shamsi) calendars in PHP. Simple standalone class or Composer package, with support for dates beyond the 2038 limit.
Carbon with extensions).For Executives: "This package lets us natively support the Jalali calendar for our Iranian/Afghanistan users without building custom logic—saving dev time and ensuring accuracy. It’s lightweight, open-source, and handles edge cases like dates beyond 2038, which is critical for long-term reliability. The MIT license avoids licensing risks, and the low maintenance burden makes it a low-risk investment for localization."
For Engineering:
"We can drop this into our PHP stack to handle Jalali date conversions (Gregorian ↔ Shamsi) with minimal effort. It’s a single dependency, supports dates beyond 2038, and integrates via Composer. Trade-off: No active updates, but the core logic is stable. Recommend pairing with tests to validate edge cases (e.g., leap years, negative dates). Alternatives like mheydari/jalali have more stars but similar functionality—this is simpler for our needs."
How can I help you explore Laravel packages today?