cammac/carbony

convert from/to Hijri and Gregorian

2.0.1 2022-03-06 05:52 UTC

This package is auto-updated.

Last update: 2024-04-06 10:26:28 UTC


README

Installation

You can install the package via composer:

$ composer require cammac/carbony

Usage

you can use it just like Carbon package i just add two functions

hijriFormat

format the timestamp to hijri date (convert gregorian to hijri)

 Carbony::now()->hijriFormat('Y-m-d')

hijriParse

parse the input and convert it to gregorian

Carbony::hijriParse('1409-06-14')

Testing

$ vendor/bin/phpunit

Security

If you discover any security related issues, please email abdullah@efront.sa instead of using the issue tracker.

Credits

License

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