PHPackages                             eexbee/jalali-date-time-bundle - 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. eexbee/jalali-date-time-bundle

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

eexbee/jalali-date-time-bundle
==============================

Brings Jalali(Persian/Iranian) DateTime to Symfony/Twig

v1.0(5y ago)14MITPHPPHP ^7.1.3

Since Oct 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/eexbee/JalaliDateTimeBundle)[ Packagist](https://packagist.org/packages/eexbee/jalali-date-time-bundle)[ Docs](https://github.com/eexbee/JalaliDateTimeBundle)[ RSS](/packages/eexbee-jalali-date-time-bundle/feed)WikiDiscussions master Synced today

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

JalaliDateTimeBundle
====================

[](#jalalidatetimebundle)

Brings Jalali (Persian/Iranian) DateTime to Symfony/Twig

[![Build Status](https://camo.githubusercontent.com/28c7a68f3d768977dd1a208970edbec6c4b7184cd674cd62dc97ab8918aab471/68747470733a2f2f7472617669732d63692e6f72672f6565786265652f4a616c616c694461746554696d6542756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/github/eexbee/JalaliDateTimeBundle)[![Latest Stable Version](https://camo.githubusercontent.com/cdc0f51e094f692c588aa3023521f8b7a490de9b073fdd3eebb3ff3c00a6fe12/68747470733a2f2f706f7365722e707567782e6f72672f6565786265652f6a616c616c692d646174652d74696d652d62756e646c652f762f737461626c652e737667)](https://packagist.org/packages/eexbee/jalali-date-time-bundle)

Requirements
------------

[](#requirements)

- symfony &gt; 3.4

Installation
------------

[](#installation)

`composer require eexbee/jalali-date-time-bundle`

Usage
-----

[](#usage)

This bundle provides Jalali DateTime tools to be used inside your Controllers, Twig templates and forms.

### 1. Twig

[](#1-twig)

Use `j_datetime_format` twig filter to convert php DateTime object into Jalali format

```
{# templates/frontend/home.html.twig #}
...
    {{ datetimeObject|j_datetime_format }} {# ا۲۲:۰، ۰۹ مهر ۱۳۹۹ #}
...
```

You can Also pass several parameters to the filter to customize the output. Filter definition looks like this:

```
...
    j_datetime_format(
        \DateTime $dateTime, //php DateTime Object
        $format = 'H:i ,d F Y', //Arbitrary format (checkout format table)
        $timeZone = 'Asia/Tehran', //Timezone
        $lang = 'fa' //Output number characters (fa or en)
    )
...
```

Example:

```
{# templates/frontend/home.html.twig #}
...
    {{ datetimeObject|j_datetime_format('Y-m-d H:i:s', "Europe/Paris", "en") }}
    {# output: 1399-07-09 12:27:49 #}
...
```

[Checkout availabe formats](#format-table)

### 2. Form

[](#2-form)

soon

### 3. Service

[](#3-service)

Jalali DateTime service is automatically ready to use due to the symfony service management and dependency injection mechanism.

### Format Table

[](#format-table)

###  Health Score

23

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Unknown

Total

1

Last Release

2132d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1703545?v=4)[Amin Mosayebi](/maintainers/eexbee)[@eexbee](https://github.com/eexbee)

---

Top Contributors

[![eexbee](https://avatars.githubusercontent.com/u/1703545?v=4)](https://github.com/eexbee "eexbee (22 commits)")

---

Tags

datetimeJalalipersian

### Embed Badge

![Health badge](/badges/eexbee-jalali-date-time-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/eexbee-jalali-date-time-bundle/health.svg)](https://phpackages.com/packages/eexbee-jalali-date-time-bundle)
```

PHPackages © 2026

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