Weave Code
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

Jalali Date Time Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Localization for Persian-speaking markets: Enables date handling in the Jalali (Shamsi) calendar, critical for Iranian users, businesses, or apps targeting Iran/Afghanistan.
  • Legacy system modernization: Useful for migrating older PHP applications that rely on custom date logic to a maintainable, reusable package.
  • Compliance with regional standards: Supports legal, financial, or administrative systems where Jalali dates are mandatory (e.g., Iranian government, academic institutions).
  • Build vs. buy: Avoids reinventing the wheel for Jalali date conversions, reducing dev time and technical debt.
  • Edge-case handling: Addresses the "year 2038 problem" for Jalali dates, ensuring long-term reliability for applications with future date requirements.

When to Consider This Package

  • Adopt if:
    • Your product serves Persian-speaking users or markets (Iran, Afghanistan, Tajikistan).
    • You need a lightweight, MIT-licensed solution for Jalali date conversions in PHP.
    • Your team lacks expertise in implementing custom date algorithms for the Jalali calendar.
    • You require support for dates beyond 2038 (e.g., financial projections, historical data).
  • Look elsewhere if:
    • You need active maintenance (last release in 2019; consider forking or alternatives like mheydari/jalali).
    • Your stack is non-PHP (e.g., Node.js, Python) or uses a framework with built-in localization (e.g., Laravel’s Carbon with extensions).
    • You require timezone support or advanced features (e.g., holidays, business days) beyond basic conversion.
    • Security/compliance audits demand a package with recent updates and community adoption.

How to Pitch It (Stakeholders)

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."

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.
daikazu/eloquent-salesforce-objects
unseen-codes/chat
romalytar/yammi-jobs-monitoring-laravel
kisame76/filament-db-table-state
nqxcode/laravel-lucene-search
dpfx/laravel-livewire-wizards
workos/workos-php-laravel
sofa/laravel-global-scope
nawasara/auth-primitives
adhocrat-io/arkhe-main
make-dev/orca-harpoon
itsemon245/lamet
baks-dev/dashboard
amoifr/pickle-panther-bundle
make-dev/orca
dmstr/symfony-system-resources-bundle
dmstr/symfony-job-queue-bundle
dmstr/openapi-json-schema-bundle
dmstr/keycloak-security-bundle
dmstr/doctrine-audit-log-bundle