PHPackages                             modiamir/symfonyjdate - 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. modiamir/symfonyjdate

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

modiamir/symfonyjdate
=====================

Jalali (Shamsi) DateTime for Symfony2, Supports year higher than 2038

v1.1.14(7y ago)034MITPHPPHP &gt;=5.2.0

Since Mar 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/modiamir/SymfonyJDate)[ Packagist](https://packagist.org/packages/modiamir/symfonyjdate)[ Docs](http://sallar.me/projects/jdatetime/)[ RSS](/packages/modiamir-symfonyjdate/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (7)Used By (0)

Symfony JalaliDateTime
======================

[](#symfony-jalalidatetime)

[![SensioLabsInsight](https://camo.githubusercontent.com/2c2c47248f60f30b43a1ebfe443b28124b7821ca3844c4d705038b2f04fc2578/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f31366436623633612d316632352d343133642d396239322d6637623832333032373130322f6d696e692e706e67)](https://insight.sensiolabs.com/projects/16d6b63a-1f25-413d-9b92-f7b823027102) [![Latest Stable Version](https://camo.githubusercontent.com/de37222a19288d4fa29e217f4c546e049aaf2d0f1bc7bae55690e98e61e8adae/68747470733a2f2f706f7365722e707567782e6f72672f73796d666f6e795f7065727369612f73796d666f6e796a646174652f762f737461626c652e737667)](https://packagist.org/packages/symfony_persia/symfonyjdate) [![License](https://camo.githubusercontent.com/7de153085a06336708592d74842f7cd3333bcd0d17e0daac573cf611da531206/68747470733a2f2f706f7365722e707567782e6f72672f73796d666f6e795f7065727369612f73796d666f6e796a646174652f6c6963656e73652e737667)](https://packagist.org/packages/symfony_persia/symfonyjdate)

Symfony Bundle for converting dates from Gregorian calendar system to Jalali calendar system and vice versa. Supports dates beyond 2038.
Jalali, also known as Shamsi or Hijri Shamsi is the Iranian calendar system. It uses [Salar Kaboli's jDateTime class](https://github.com/sallar/jDateTime) for the conversion.

\#Requirements

jDateTime Requires **PHP &gt;= 5.2**

\#Installation

```
composer require symfony_persia/symfonyjdate

```

And then add the package to app/AppKernel.php

\#Examples

There is two ways to use this bundle:

\##1. As a Twig filter (recommended)

Simply you can filter any variable containing a date, datetime, interval or date string:

```
{{ entity.date|jdate }}

```

Also it's possible to chose the format:

```
{{ entity.date|jdate('Y-m-d') }}

```

\##2. As a service

Not recommanded, Maybe neccessary in some situations though.

Example:

```
$jDate = $serviceContainer->get('symfony_persia.jdate');

```

\#Contributors:

- [MohammadHossein Heydari](https://github.com/mdhheydari)
- [Sallar Kaboli](http://sallar.me)
- [Omid Pilevar](http://pilevar.ir)
- [Afshin Mehrabani](http://afshinm.name)
- [Amir Latifi](http://amiir.me)
- [Ruhollah Namjoo](https://github.com/namjoo)

\##License Symfony JalaliDate Bundle was created by [MohammadHossein Heydari](https://github.com/mdhheydari) and released under the [MIT License](http://opensource.org/licenses/mit-license.php).

Copyright (C) 2015 [MohammadHossein Heydari](https://github.com/mdhheydari)

jDateTime was created by [Sallar Kaboli](http://sallar.me) and released under the [MIT License](http://opensource.org/licenses/mit-license.php).

Copyright (C) 2015 [Sallar Kaboli](http://sallar.me)
Part of Phoenix Framework (p5x.org) by [Phoenix Alternatvie](http://p5x.org)

Original Jalali to Gregorian (and vice versa) convertor:
Copyright (C) 2000 Roozbeh Pournader and Mohammad Toossi

```
The MIT License (MIT)

Copyright (C) 2015      MohammadHossein Heydari
Copyright (C) 2003-2015 Sallar Kaboli

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

1- The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

2- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

```

\#Resources

- [List of supported timezones](http://www.php.net/manual/en/timezones.php)
- [Documentation and Instructions in Persian](http://sallar.me/projects/jdatetime)
- [Project page in phpclasses.org](http://www.phpclasses.org/jdatetime)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 57.8% 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 ~412 days

Total

4

Last Release

2826d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/70bbbc01cbeb80dc0e56039b33253d86030ef4bf56944b8a078ca87309568bcd?d=identicon)[modiamir](/maintainers/modiamir)

---

Top Contributors

[![sallar](https://avatars.githubusercontent.com/u/768052?v=4)](https://github.com/sallar "sallar (52 commits)")[![afshinm](https://avatars.githubusercontent.com/u/314326?v=4)](https://github.com/afshinm "afshinm (17 commits)")[![0xC0D3D00D](https://avatars.githubusercontent.com/u/2244181?v=4)](https://github.com/0xC0D3D00D "0xC0D3D00D (14 commits)")[![pilevar](https://avatars.githubusercontent.com/u/1252853?v=4)](https://github.com/pilevar "pilevar (2 commits)")[![pooyanism](https://avatars.githubusercontent.com/u/10364229?v=4)](https://github.com/pooyanism "pooyanism (1 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")[![ammont](https://avatars.githubusercontent.com/u/2066482?v=4)](https://github.com/ammont "ammont (1 commits)")[![modiamir](https://avatars.githubusercontent.com/u/14848122?v=4)](https://github.com/modiamir "modiamir (1 commits)")[![nimamo](https://avatars.githubusercontent.com/u/1217593?v=4)](https://github.com/nimamo "nimamo (1 commits)")

---

Tags

symfonydatetimetimeJalalipersianshamsifarsijalalidatejdatetime

### Embed Badge

![Health badge](/badges/modiamir-symfonyjdate/health.svg)

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

###  Alternatives

[symfony_persia/symfonyjdate

Jalali (Shamsi) DateTime for Symfony2, Supports year higher than 2038

1010.6k](/packages/symfony-persia-symfonyjdate)[hekmatinasser/verta

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

657530.5k27](/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.

36473.2k8](/packages/fisharebest-ext-calendar)[opilo/farsi

Farsi Tools for Dates and Numbers and Strings (with Laravel Validation Support)

333.2k1](/packages/opilo-farsi)[iamfarhad/validation

🇮🇷 Complete Laravel Persian validation package - Iranian national ID, mobile numbers, Shamsi dates, IBAN/Sheba, postal codes &amp; more. Modern Laravel 10-12 support with both ValidationRule objects &amp; string-based rules.

2917.3k](/packages/iamfarhad-validation)[p3ym4n/jdate

Date converter from Jalali to Georgian and vice versa. It has Carbon instance inside and it's Laravel friendly.

101.8k2](/packages/p3ym4n-jdate)

PHPackages © 2026

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