maherelgamil/arabicdatetime
A Laravel package for Arabic date and time formatting, converting Carbon dates into readable Arabic output with localization support for names of months, days, and time expressions in your applications.
intl with an ar locale, plus a service provider." Seeing how little unique logic exists here is a strong argument for a thin internal helper over a third-party dependency for the rest of your localization stack.Reasonable to evaluate when:
IntlDateFormatter yourself.Look elsewhere — or build it — when:
intl is available. Carbon's locale support covers most of this: now()->locale('ar')->translatedFormat('l، j F Y') requires zero dependencies and is maintained by the framework you already pay for. IntlDateFormatter('ar_SA', ...) adds Hijri via the islamic-umalqura calendar.Middle path worth naming explicitly: the package is MIT-licensed and its surface area is small. Fork it, or copy the formatting logic into app/Support/ with tests. You get the Arabic output without the dependency — and you own the upgrade path, which at this size is a day of work, not a quarter.
To executives: Arabic date rendering is a small, visible requirement for MENA-facing screens, and this package is a cheap way to see what "good" looks like in about an hour. It is not a foundation. The last release was June 2021, it has one maintainer and ~41 stars, and it hasn't demonstrated support for current Laravel or PHP versions — so adopting it means accepting an upgrade liability on a component users read on invoices and contracts. Recommendation: do not take a dependency. Fund roughly one to two engineering days for a small internal helper built on Laravel's existing Carbon locale support and PHP intl. Same output, no supply-chain exposure, and we control Hijri and numeral-system behavior as explicit product settings rather than inheriting a default.
To engineering: treat it as reference material, not a dependency. Read it to shortcut the formatting edge cases (month-name variants, preposition handling, digit conversion), then implement locally with translatedFormat / IntlDateFormatter and cover it with tests against known dates. Only revisit if we discover requirements — genuine Hijri conversion with Umm al-Qura precision, multi-locale output — that justify a maintained i18n library instead.
How can I help you explore Laravel packages today?