PHPackages                             mohamedsabil83/laravel-hijrian - 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. mohamedsabil83/laravel-hijrian

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

mohamedsabil83/laravel-hijrian
==============================

Hijri-Gregorian date converter for Laravel

v4.3.0(3mo ago)1322.4k↓78.8%4[1 issues](https://github.com/mohamedsabil83/laravel-hijrian/issues)[2 PRs](https://github.com/mohamedsabil83/laravel-hijrian/pulls)MITPHPPHP ^8.1CI passing

Since Jun 16Pushed 1w agoCompare

[ Source](https://github.com/mohamedsabil83/laravel-hijrian)[ Packagist](https://packagist.org/packages/mohamedsabil83/laravel-hijrian)[ Docs](https://github.com/mohamedsabil83/laravel-hijrian)[ Fund](https://paypal.me/technolizer)[ GitHub Sponsors](https://github.com/mohamedsabil83)[ RSS](/packages/mohamedsabil83-laravel-hijrian/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (26)Versions (17)Used By (0)

Hijri-Gregorian date converter for Laravel
==========================================

[](#hijri-gregorian-date-converter-for-laravel)

[![MohamedSabil83](https://camo.githubusercontent.com/cc42678705e62f2d3879fa5d7f185d1483d5fe48514e7d1f863a2d08cfabeb7b/68747470733a2f2f707265766965772e647261676f6e2d636f64652e70726f2f6d6f68616d6564736162696c38332f4c61726176656c2d48696a7269616e2e7376673f6272616e643d6c61726176656c)](https://camo.githubusercontent.com/cc42678705e62f2d3879fa5d7f185d1483d5fe48514e7d1f863a2d08cfabeb7b/68747470733a2f2f707265766965772e647261676f6e2d636f64652e70726f2f6d6f68616d6564736162696c38332f4c61726176656c2d48696a7269616e2e7376673f6272616e643d6c61726176656c)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f5cff2212a376eaceb26f3bc5ad16366220b4e34acec279bcb9581df3b64eab9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f68616d6564736162696c38332f6c61726176656c2d68696a7269616e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mohamedsabil83/laravel-hijrian)[![GitHub Tests Action Status](https://camo.githubusercontent.com/4d03d0bc70f6925ebca4555dfc45da2457b557fdfd43844a90f3d71646d0d6e0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d6f68616d6564736162696c38332f6c61726176656c2d68696a7269616e2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/mohamedsabil83/laravel-hijrian/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/858a361dbbd06c84cecc7a04845120507380a9096607a4083a6d8bb751dd7ddb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d6f68616d6564736162696c38332f6c61726176656c2d68696a7269616e2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/mohamedsabil83/laravel-hijrian/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/3a08734cea47521a3df5faa0634e2b91d428bb6bc67e287746ef93b547e044c8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f68616d6564736162696c38332f6c61726176656c2d68696a7269616e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mohamedsabil83/laravel-hijrian)

This is a Hijri-Gregory date converter for Laravel 5.8+. It's return a date instance of **carbon**, so, you can make any process related to it.

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

[](#installation)

You can install the package via composer:

```
composer require mohamedsabil83/laravel-hijrian
```

Usage
-----

[](#usage)

Don't forget to add **`use Hijrian;`** at the top of your file.

### Get Hijri date

[](#get-hijri-date)

```
Hijrian::hijri()
```

### Get Gregory date

[](#get-gregory-date)

```
Hijrian::gregory()
```

### Convert to Hijri

[](#convert-to-hijri)

```
Hijrian::hijri($gregory_date)
```

### Convert to Gregory

[](#convert-to-gregory)

```
Hijrian::gregory($hijri_date)
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [MohamedSabil83](https://github.com/mohamedsabil83)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance88

Actively maintained with recent releases

Popularity35

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~254 days

Total

13

Last Release

105d ago

Major Versions

v1.1.0 → v2.0.02020-05-07

v2.1.2 → v3.0.02021-12-23

v3.2.0 → v4.0.02024-03-11

PHP version history (4 changes)v1.0.0PHP ^7.1

v2.1.2PHP ^7.1|^8.0

v3.0.0PHP ^7.4|^8.0

v4.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ac2eca0a47bd9d3cde3c713a24b3afa3ba194f7f0e78737bbc8a7701ed42c9d?d=identicon)[mohamedsabil83](/maintainers/mohamedsabil83)

---

Top Contributors

[![mohamedsabil83](https://avatars.githubusercontent.com/u/10126040?v=4)](https://github.com/mohamedsabil83 "mohamedsabil83 (45 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (31 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (19 commits)")[![AhmedSaidNoreldin](https://avatars.githubusercontent.com/u/4776337?v=4)](https://github.com/AhmedSaidNoreldin "AhmedSaidNoreldin (1 commits)")

---

Tags

convertergregoryhijrilaravellaravelconverterdatehijrigregorianGregorylaravel-hijrian

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/mohamedsabil83-laravel-hijrian/health.svg)

```
[![Health](https://phpackages.com/badges/mohamedsabil83-laravel-hijrian/health.svg)](https://phpackages.com/packages/mohamedsabil83-laravel-hijrian)
```

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[tarfin-labs/event-machine

Event-driven state machines for Laravel with event sourcing, type-safe context, and full audit trail.

199.4k](/packages/tarfin-labs-event-machine)

PHPackages © 2026

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