New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

mohamedsabil83/laravel-hijrian

Hijri-Gregorian date converter for Laravel
23,602 13
Install
composer require mohamedsabil83/laravel-hijrian
Latest Version:v4.3.0
PHP:^8.1
Laravel:10 – 13
Older releases:5 – 9
License:MIT
Last Updated:Jul 21, 2026
Links: GitHub  ·  Packagist
Maintainer: mohamedsabil83

Hijri-Gregorian date converter for Laravel

MohamedSabil83

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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

You can install the package via composer:

composer require mohamedsabil83/laravel-hijrian

Usage

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

Get Hijri date

Hijrian::hijri()

Get Gregory date

Hijrian::gregory()

Convert to Hijri

Hijrian::hijri($gregory_date)

Convert to Gregory

Hijrian::gregory($hijri_date)

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

ham3d/hijri

Use Hijri Date in PHP

39 1
mahmouddev/hijri-date

Laravel Hijri date converter.

65 2
maherelgamil/arabicdatetime

Easy and useful tool to generate arabic or hijri date with multi-language suppor...

4,616 41
farzinft/jalali-date

Laravel Jalali datetime component known as ZAMAN

1,077 0
majid/shamsi

laravel 4.2 package for shamsi date

43 14

Version History

Version Released PHP Laravel License
v4.3.0 ^8.1 ^10.0|^11.0|^12.0|^13.0 MIT
v4.2.0 ^8.1 ^10.0|^11.0 MIT
v4.1.0 ^8.1 ^10.0 MIT
v4.0.0 ^8.1 ^10.0 MIT
v3.2.0 ^7.4|^8.0 ^5.8|^6.0|^7.0|^8.0|^9.0 MIT