PHPackages                             alifti/jdf - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. alifti/jdf

ActiveLibrary[Localization &amp; i18n](/categories/localization)

alifti/jdf
==========

Persian Jalali date for laravel , This package provide all methods that you need for shamsi/jalali date

0348PHP

Since Sep 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/alifattahi/jdf)[ Packagist](https://packagist.org/packages/alifti/jdf)[ RSS](/packages/alifti-jdf/feed)WikiDiscussions main Synced 6d ago

READMEChangelogDependenciesVersions (2)Used By (0)

DEPRICATED - DONT USE THIS LIBRARY
----------------------------------

[](#depricated---dont-use-this-library)

alifattahi/jdf
==============

[](#alifattahijdf)

Laravel 4 Persian jalali date

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

[](#installation)

In the `require` key of `composer.json` file add the following

```
    "alifti/jdf": "dev-master"
```

Run the Composer update comand

```
$ composer update

```

In your `config/app.php` add `'Alifti\jdf\jdfServiceProvider'` to the end of the `$providers` array

```
    'providers' => array(

        'Illuminate\Foundation\Providers\ArtisanServiceProvider',
        'Illuminate\Auth\AuthServiceProvider',
        ...
        'Alifti\Jdf\JdfServiceProvider',

    ),
```

Basic Usage
-----------

[](#basic-usage)

Examples
--------

[](#examples)

Some Examples (based on examples provided by Sallar)

```
// Current date time
$date = jdf::jdate('H:i:s Y/m/d');

// current date time in unix time format
$date = jdf::jmktime();

// or create your jalali unix tiem format
$date = jdf::jmktime($h,$m,$s,$jm,$jd,$jy);
```

Persian guide for all methods in this package : [Persian guide](http://jdf.scr.ir/rahnama/)

License
-------

[](#license)

- This package is created based on [jdf](http://jdf.scr.ir)
- [Jalali (Shamsi) DateTime](https://github.com/alifattahi/jdf) class included in the package is created by \[Ali Fattahi\] and is released under the MIT License.
- This package was created by \[Ali Fattahi\] and is released under the MIT License.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d6eef09ad3494ccada88cff9e2bbda8f33ed8497b614152cfb9934b71cbda543?d=identicon)[ali\_fattahi](/maintainers/ali_fattahi)

---

Top Contributors

[![alifattahi](https://avatars.githubusercontent.com/u/1831394?v=4)](https://github.com/alifattahi "alifattahi (5 commits)")

### Embed Badge

![Health badge](/badges/alifti-jdf/health.svg)

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

###  Alternatives

[symfony/translation

Provides tools to internationalize your application

6.6k836.5M2.1k](/packages/symfony-translation)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.8k](/packages/nesbot-carbon)[joedixon/laravel-translation

A tool for managing all of your Laravel translations

717911.4k11](/packages/joedixon-laravel-translation)[illuminate/translation

The Illuminate Translation package.

6936.4M495](/packages/illuminate-translation)[lajax/yii2-translate-manager

Translation management extension for Yii 2

227578.8k13](/packages/lajax-yii2-translate-manager)[larswiegers/laravel-translations-checker

Make sure your laravel translations are checked and are included in all languages.

256423.2k2](/packages/larswiegers-laravel-translations-checker)

PHPackages © 2026

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