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

1379PHP

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 today

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

20

—

LowBetter than 12% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

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

[smarty-gettext/smarty-gettext

Gettext plugin enabling internationalization in Smarty Package files

752.5M8](/packages/smarty-gettext-smarty-gettext)[devaslanphp/auto-translate

Auto generate translation JSON files

6627.3k](/packages/devaslanphp-auto-translate)

PHPackages © 2026

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