PHPackages                             maherelgamil/arabicdatetime - 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. maherelgamil/arabicdatetime

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

maherelgamil/arabicdatetime
===========================

Easy and useful tool to generate arabic or hijri date with multi-language support for laravel

4.2.0(5y ago)414.6k9MITPHPPHP &gt;=5.4.0CI failing

Since Jan 25Pushed 5y ago3 watchersCompare

[ Source](https://github.com/maherelgamil/arabicdatetime)[ Packagist](https://packagist.org/packages/maherelgamil/arabicdatetime)[ Docs](https://github.com/maherelgamil/arabicdatetime)[ RSS](/packages/maherelgamil-arabicdatetime/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (3)Versions (11)Used By (0)

ArabicDateTime
==============

[](#arabicdatetime)

Easy and useful tool to generate arabic or hijri date with multi-language support for laravel .

[![Latest Stable Version](https://camo.githubusercontent.com/f0b4241b680ac6f8c3d90aeca3a16a54bbb3191494f1ec698522060bfef09f82/68747470733a2f2f706f7365722e707567782e6f72672f6d61686572656c67616d696c2f6172616269636461746574696d652f762f737461626c65)](https://packagist.org/packages/maherelgamil/arabicdatetime)[![Total Downloads](https://camo.githubusercontent.com/c7cf4c94c59e7b8502bf3fccb245a0e3b2a81411c7242d88384740377ad9a1e4/68747470733a2f2f706f7365722e707567782e6f72672f6d61686572656c67616d696c2f6172616269636461746574696d652f646f776e6c6f616473)](https://packagist.org/packages/maherelgamil/arabicdatetime)[![Latest Unstable Version](https://camo.githubusercontent.com/38fd58179b8559384877c977771e18373e481cd0b3052780f62059456ff41327/68747470733a2f2f706f7365722e707567782e6f72672f6d61686572656c67616d696c2f6172616269636461746574696d652f762f756e737461626c65)](https://packagist.org/packages/maherelgamil/arabicdatetime)[![License](https://camo.githubusercontent.com/edb6e1746cc5c18176375662a3b030a12ec77013e43101b663e09bf1c32c19dd/68747470733a2f2f706f7365722e707567782e6f72672f6d61686572656c67616d696c2f6172616269636461746574696d652f6c6963656e7365)](https://packagist.org/packages/maherelgamil/arabicdatetime)[![Monthly Downloads](https://camo.githubusercontent.com/8060fb994301a374505024c6a1cd167b2905a5114ce6fbcaab503cc80b74f3c0/68747470733a2f2f706f7365722e707567782e6f72672f6d61686572656c67616d696c2f6172616269636461746574696d652f642f6d6f6e74686c79)](https://packagist.org/packages/maherelgamil/arabicdatetime)[![StyleCI](https://camo.githubusercontent.com/d44faeb414de07c873e69a586e8a8e1d787126a1e66a14fdacfde4dee0dfebff/68747470733a2f2f7374796c6563692e696f2f7265706f732f32373737333438362f736869656c64)](https://styleci.io/repos/27773486)

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

[](#installation)

### Composer

[](#composer)

Add Laravel ArabicDateTime to your `composer.json` file.

```
    composer require maherelgamil/arabicdatetime
```

Run `composer install` to get the latest version of the package.

### Laravel 5.\* only

[](#laravel-5-only)

ArabicDateTime comes with a service provider for Laravel 4. You'll need to add it to your `composer.json` as mentioned in the above steps, then register the service provider with your application.

Open `app/config/app.php` and find the `providers` key. Add `Arabicdatetime\ArabicdatetimeServiceProvider` to the array.

```
	...
	Maherelgamil\Arabicdatetime\ArabicdatetimeServiceProvider::class
	...
```

You can also add an alias to the list of class aliases in the same app.php

```
	...
	'Arabicdatetime'    => Maherelgamil\Arabicdatetime\Facades\Arabicdatetime::class
	...
```

Now . publish vendor

```
    php artisan vendor:publish

```

Useage
------

[](#useage)

### Get date from unixtime

[](#get-date-from-unixtime)

```
    //$arabDateTime->date({unixtime} , {mode} , {schema} , {numericMode});

    //This function take 4 Parameters :

    //1- unixtime : ex '1418123530'

    //2- mode :
        0 for Arabic date
        1 for Hijri date

    //3- schema : as `php` schema , you can read this page for more info. : http://php.net/manual/en/function.date.php

    //4- numericMode takes two types 'indian'  or 'arabic' and 'arabic' is default

    //5 - Create a Arabicdatetime instance
    $arabDateTime = new Arabicdatetime();

    //for Gregorian date with Englsih numbers
    $arabDateTime->date(1418123530 , 0);

    //for Hijri date with indian numbers
    $arabDateTime->date(1418123530 , 1 , 'd / m / y '  ,'indian');

    //for Hijri date, there is an optional correction, You can add or subtract days with plus and minus
    $arabDateTime->setCorrection('+1');
    $arabDateTime->setCorrection('-1');
```

### Get Days with locale language

[](#get-days-with-locale-language)

```
    $arabDateTime->getDays();
```

### Get Arabic Days

[](#get-arabic-days)

```
    $arabDateTime->getArabicDays();
```

### Get Months With locale language

[](#get-months-with-locale-language)

```
    $arabDateTime->getMonths();
```

### Get Arabic Months

[](#get-arabic-months)

```
    $arabDateTime->getArabicMonths();
```

### Get Hijri Months with locale language

[](#get-hijri-months-with-locale-language)

```
    $arabDateTime->getHijriMonths();
```

### Get Hijri Months

[](#get-hijri-months)

```
    $arabDateTime->getArabicHijriMonths();
```

### Get remainnig time

[](#get-remainnig-time)

```
    $arabDateTime->remainingTime(1418123530);
```

### Get left time

[](#get-left--time)

```
    $arabDateTime->leftTime(1418123530);
```

### Get left or remaining time

[](#get-left-or-remaining--time)

```
    $arabDateTime->leftRemainingTime(1418123530);
```

License
-------

[](#license)

ArabicDateTime is an open-sourced laravel package licensed under the [MIT](LICENSE) license

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 69.4% 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 ~260 days

Recently: every ~526 days

Total

10

Last Release

1829d ago

Major Versions

1.0.2 → 2.0.02015-02-07

2.0.1 → 3.0.12015-06-20

3.0.2 → 4.0.02015-09-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/36c2155f42ace990363515c144c4903ae8eca6d69742f74ad329ec4feb721709?d=identicon)[maherbusnes](/maintainers/maherbusnes)

---

Top Contributors

[![maherelgamil](https://avatars.githubusercontent.com/u/6294478?v=4)](https://github.com/maherelgamil "maherelgamil (43 commits)")[![arezk84](https://avatars.githubusercontent.com/u/1064805?v=4)](https://github.com/arezk84 "arezk84 (14 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (3 commits)")[![salkhwlani](https://avatars.githubusercontent.com/u/10876587?v=4)](https://github.com/salkhwlani "salkhwlani (1 commits)")[![zayanit](https://avatars.githubusercontent.com/u/2796596?v=4)](https://github.com/zayanit "zayanit (1 commits)")

---

Tags

composerhijrihijri-monthslaravellocale-languagephpphplaraveltimedatearabichijrimaherelgamilbuzzylab

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/maherelgamil-arabicdatetime/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

209175.5k8](/packages/bezhansalleh-filament-google-analytics)[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)

PHPackages © 2026

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