PHPackages                             vsg24/easydatetime - 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. vsg24/easydatetime

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

vsg24/easydatetime
==================

Jalali (Shamsi) DateTime class written in PHP, abstraction, easy, little configuration

v1.0.1(9y ago)490MITPHPPHP &gt;=5.4.0

Since Jul 7Pushed 9y ago2 watchersCompare

[ Source](https://github.com/VSG24/EasyDateTime)[ Packagist](https://packagist.org/packages/vsg24/easydatetime)[ Docs](https://vsg24.github.io/EasyDateTime/)[ RSS](/packages/vsg24-easydatetime/feed)WikiDiscussions master Synced 3w ago

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

EasyDateTime
============

[](#easydatetime)

EasyDateTime is a Jalali/Shamsi and Gregorian class based on [jDateTimePlus](https://github.com/VSG24/jDateTimePlus/) that aims to simplify common DateTime tasks by abstracting the complex layers. It's probably the **simplest** solution for Jalali/Shamsi calendar issues in PHP.

About this class
================

[](#about-this-class)

EasyDateTime is directly based on `jDateTimePlus` 1.0.0 which is itself based on `jDateTime` 2.2.0

Requirements
============

[](#requirements)

- **PHP &gt;= 5.4**.
- Being based on [jDateTimePlus](https://github.com/VSG24/jDateTimePlus/), this package has a dependency on jDateTimePlus 1.0.0+

Installation
============

[](#installation)

Using Composer
--------------

[](#using-composer)

You can install this package using [composer](https://getcomposer.org). Add this package to your `composer.json`:

```
"require": {
	"vsg24/easydatetime": "dev-master"
}

```

or if you prefer command line, change directory to project root and:

```
php composer.phar require "vsg24/easydatetime":"dev-master"

```

Manual Installation
-------------------

[](#manual-installation)

Get a copy of package source code. You can do this in two ways:

1. Download ZIP version of the source code and unzip it in desired location
2. Run `git clone https://github.com/vsg24/easydatetime.git` to clone this repository

After getting a copy of source code, it is enough to include `easydatetime.class.php` where you need to use it.

```
require_once 'path/to/source/easydatetime.class.php';
```

Examples
========

[](#examples)

Please take a look at [examples.php](examples.php) or see [examples-compiled.html](examples-compiled.html) for working examples.

**Important Note:**If you want to do more complicated things, you can access an instance of `jDatetimePlus` from an EasyDateTime object:

`$edtObj->$jDatetimePlus`

Contributors:
=============

[](#contributors)

- [Vahid Amiri Motlagh](http://atvsg.com)

License
-------

[](#license)

EasyDateTime was created by [Vahid Amiri Motlagh](http://atvsg.com) and released under the [MIT License](http://opensource.org/licenses/mit-license.php).

Copyright (C) 2016 [Vahid Amiri Motlagh](http://atvsg.com)

```
The MIT License (MIT)

Copyright (C) 2016 Vahid Amiri Motlagh

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.

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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

Every ~54 days

Total

2

Last Release

3591d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7500363?v=4)[Vahid Amiri Motlagh](/maintainers/VSG24)[@vsg24](https://github.com/vsg24)

---

Top Contributors

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

---

Tags

datetimejalali-calendarphpshamsidatetimetimedateJalaliiranpersianshamsifarsijalalidatejdatetime

### Embed Badge

![Health badge](/badges/vsg24-easydatetime/health.svg)

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

###  Alternatives

[symfony_persia/symfonyjdate

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

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

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

657541.4k28](/packages/hekmatinasser-verta)[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)[opilo/farsi

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

313.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-13 support with both ValidationRule objects &amp; string-based rules.

3017.3k](/packages/iamfarhad-validation)

PHPackages © 2026

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