Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Arabicdatetime Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • MENA / Arabic-first market expansion. If Arabic-language users are on the roadmap (or already a meaningful segment), this package sits in the "date and time rendering" slice of that work — the part users notice on invoices, receipts, booking confirmations, contracts, and government-facing documents. It informs sequencing: is Arabic date formatting a launch blocker or a post-launch polish item?
  • Gregorian vs. Hijri vs. dual-calendar display. Many Gulf-market products must show Hijri dates alongside (or instead of) Gregorian ones, while Levant/Egypt users generally expect Gregorian. A dedicated Arabic date library forces this question early, which is exactly when it's cheap to answer — it's a product requirement, not a formatting preference.
  • Numeral system policy. Arabic-Indic digits (٠١٢٣) vs. Western digits (0123) is a real regional preference split, not a technical detail. Whatever the package does by default becomes your de facto product decision unless someone owns it deliberately.
  • Build vs. buy on i18n plumbing. This is a useful calibration case: the underlying capability is roughly "Carbon + PHP 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.
  • Vendor/third-party risk policy. With the last release in June 2021 and 41 stars, it's a concrete test case for your dependency governance: does a single-maintainer package with no release in ~4 years clear your bar for anything customer-facing?

When to Consider This Package

Reasonable to evaluate when:

  • You're on a small Laravel app, need Arabic day/month names quickly, and want a facade/helper instead of wiring IntlDateFormatter yourself.
  • The scope is display-only Gregorian formatting — no Hijri, no advanced calendar math.
  • You're prototyping or running a short-lived internal tool where the maintenance horizon is months, not years.
  • You've checked that it installs and runs on your Laravel/PHP version (Laravel 9/10/11 and PHP 8.1+ compatibility is unverified given the release date).

Look elsewhere — or build it — when:

  • PHP 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.
  • Hijri accuracy matters (Umm al-Qura alignment, regulatory or religious-calendar sensitivity). Verify any library against known dates; don't assume.
  • You need more than Arabic — multi-locale formatting, per-user timezone handling, relative-time strings. Better served by a maintained i18n layer than a single-locale wrapper.
  • Anything long-lived or compliance-reviewed. Four years without a release, one maintainer, and 41 stars is a supply-chain and bus-factor conversation you don't want to have in an audit.
  • You need it to survive the next framework upgrade. An abandoned wrapper is a migration tax you inherit silently.

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.

How to Pitch It (Stakeholders)

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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package