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

ActiveLibrary

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

Hijri-Gregorian date converter for Laravel

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

Since Jun 16Pushed 1mo 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 1mo ago

READMEChangelog (10)Dependencies (26)Versions (15)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

Maintenance87

Actively maintained with recent releases

Popularity35

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity75

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

58d 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

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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