Skip to content

algethamy/carbony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hijri date library on top of Carbon

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 [email protected] instead of using the issue tracker.

Credits

License

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