PHPackages                             mtm/persian-date-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. mtm/persian-date-bundle

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

mtm/persian-date-bundle
=======================

v1.0.4(10y ago)3721[1 issues](https://github.com/motammem/persian_date_bundle/issues)PHP

Since Sep 13Pushed 10y ago1 watchersCompare

[ Source](https://github.com/motammem/persian_date_bundle)[ Packagist](https://packagist.org/packages/mtm/persian-date-bundle)[ RSS](/packages/mtm-persian-date-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

Persian Date Bundle
===================

[](#persian-date-bundle)

Symfony2 PersianDateBundle

### Installation:

[](#installation)

```
composer require mtm/persian-date-bundle:1.0.4

```

add following line to your `AppKernel.php`

```
new Mtm\PersianDateBundle\MtmPersianDateBundle(),
```

### Usage:

[](#usage)

#### Form Type:

[](#form-type)

This bundle comes with a `mtm_persian_date_type` form type which prompt user for persian date at view layer and converts it to Standard PHP DateTime object at business layer. So you can use Standard PHP DateTime object as form data.

Here is how to use it:

```
$dateTime = new \DateTime('tomorrow');

$this->createForm('mtm_persian_date_type', $dateTime);
```

#### Twig Filter:

[](#twig-filter)

This bundle also adds a very handy twig filter `persian_date` to format Standard PHP DateTime object.

```

    {{ post.createdAt| persian_date("Y-m-d') }}

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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 ~15 days

Total

4

Last Release

3855d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/46e7d558a025948fb1d5c0941349f919699cf468995cd5d5c3d56dc8a39072db?d=identicon)[motammem](/maintainers/motammem)

---

Top Contributors

[![motammem](https://avatars.githubusercontent.com/u/5410340?v=4)](https://github.com/motammem "motammem (9 commits)")

### Embed Badge

![Health badge](/badges/mtm-persian-date-bundle/health.svg)

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

###  Alternatives

[dorsetdigital/silverstripe-enhanced-requirements

Enhanced requirements for Silverstripe

117.8k4](/packages/dorsetdigital-silverstripe-enhanced-requirements)[infoweb-internet-solutions/yii2-cms-analytics

Analytics module for Yii2

112.4k1](/packages/infoweb-internet-solutions-yii2-cms-analytics)

PHPackages © 2026

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