PHPackages                             ahhp/jcalendar - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ahhp/jcalendar

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ahhp/jcalendar
==============

Persian Calendar Converter

v4.0.0(4y ago)071MITPHPPHP &gt;=7

Since Oct 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/AmirHossein/jCalendar)[ Packagist](https://packagist.org/packages/ahhp/jcalendar)[ RSS](/packages/ahhp-jcalendar/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

jCalendar
=========

[](#jcalendar)

Persian Calendar functions

Implementing PHP [date](https://www.php.net/manual/en/function.date.php), [getdate](https://www.php.net/manual/en/function.getdate.php), and [mktime](https://www.php.net/manual/en/function.mktime.php)functions for Perisan calendar

[![Latest Stable Version](https://camo.githubusercontent.com/ff1eea5ae120cf0a4de920bfd34e458151edf449d05ba1ae90b7a3aba0639e00/68747470733a2f2f706f7365722e707567782e6f72672f616868702f6a63616c656e6461722f76)](//packagist.org/packages/ahhp/jcalendar) [![Total Downloads](https://camo.githubusercontent.com/32fe183cbdf9f7201c9c5fbb6d238ca1ce90ec06f31a17a37a393aea8ec90074/68747470733a2f2f706f7365722e707567782e6f72672f616868702f6a63616c656e6461722f646f776e6c6f616473)](//packagist.org/packages/ahhp/jcalendar) [![Latest Unstable Version](https://camo.githubusercontent.com/74e7f6eac0ed2a79e16f87fe06857a46eadbcefd56842572454b4dff5db002cf/68747470733a2f2f706f7365722e707567782e6f72672f616868702f6a63616c656e6461722f762f756e737461626c65)](//packagist.org/packages/ahhp/jcalendar) [![License](https://camo.githubusercontent.com/38072e1acf0260dba768ac3e18313bbaf905f9d2e3c1cf0ed04e2669639685ab/68747470733a2f2f706f7365722e707567782e6f72672f616868702f6a63616c656e6461722f6c6963656e7365)](//packagist.org/packages/ahhp/jcalendar)

Install:

```
composer require ahhp/jcalendar

```

Usage:

```
$t = strtotime('2021-09-23 05:00:00 +00:00'); // UNIX timestamp

ahhp\jCalendar\jCalendar::date('Y/m/d H:i:s', $t); // ۱۴۰۰/۰۷/۰۱ ۰۵:۰۰:۰۰

ahhp\jCalendar\jCalendar::date('Y-m-d H:i:s', $t, false); // 1400-07-01 05:00:00

ahhp\jCalendar\jCalendar::getdate($t, false);
/* See php getdate function
[
    [0] => 1632373200
    [mday] => 1
    [wday] => 5
    [mon] => 7
    [year] => 1400
    [yday] => 187
    [weekday] => پنجشنبه
    [month] => مهر
]
*/

$timestamp = ahhp\jCalendar\jCalendar::mktime(5, 0, 0, 7, 1, 1400); // 1400-07-1 05:00:00
date('r', $timestamp); // Thu, 23 Sep 2021 05:00:00 +0000

// Converters
ahhp\jCalendar\jCalendar::gregorian_to_jalali(2021, 9, 23); // [1400, 7, 1]
ahhp\jCalendar\jCalendar::jalali_to_gregorian(1400, 7, 1); // [2021, 9, 23]
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~16 days

Total

3

Last Release

1688d ago

Major Versions

v3.0.1 → v4.0.02021-11-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/cfc4251313faab866c13a947c0785cc16d954db3250128a85f4b4ab968eb1fb1?d=identicon)[AHHP](/maintainers/AHHP)

---

Top Contributors

[![AmirHossein](https://avatars.githubusercontent.com/u/293169?v=4)](https://github.com/AmirHossein "AmirHossein (6 commits)")

---

Tags

datecalendarJalalipersian

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ahhp-jcalendar/health.svg)

```
[![Health](https://phpackages.com/badges/ahhp-jcalendar/health.svg)](https://phpackages.com/packages/ahhp-jcalendar)
```

###  Alternatives

[league/period

Time range API for PHP

7335.8M24](/packages/league-period)[morilog/jalali

This Package helps developers to easily work with Jalali (Shamsi or Iranian) dates in PHP applications, based on Jalali (Shamsi) DateTime class.

9391.3M51](/packages/morilog-jalali)[aeon-php/calendar

PHP type safe, immutable calendar library

20810.4M16](/packages/aeon-php-calendar)[hekmatinasser/verta

This Package helps developers to work with Jalali Datetime class for Laravel Framework PHP

657550.0k28](/packages/hekmatinasser-verta)[fisharebest/ext-calendar

Implementation of the Arabic (Hijri), French, Gregorian, Jewish, Julian and Persian (Jalali) calendars. Also provides a replacement for the PHP ext/calendar extension.

36513.6k11](/packages/fisharebest-ext-calendar)[umulmrum/holiday

A PHP library to compute holidays. It's something :-)

93385.8k1](/packages/umulmrum-holiday)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
