Skip to content

extended hijri date library from nazir/go2hi with carbon syntax style

License

Notifications You must be signed in to change notification settings

drajathasan/zein-hijri

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zein-hijri

extended hijri date library from nazir/go2hi with nesbot/carbon syntax style

Example

<?php
require __DIR__ . '/vendor/autoload.php';

use Zein\Hijri\Hijri;

echo Hijri::now(); // get current date in hijri
// output : 09 Dzul Qa'dah 1443

echo Hijri::yesterday(); // yesterday
// output : 08 Dzul Qa'dah 1443

echo Hijri::yesterday(); // tomorrow
// output : 10 Dzul Qa'dah 1443

echo Hijri::now()->format('Y-m-d'); // tomorrow
// output : 1443-11-09

echo Hijri::get(15)->day()->ago(); // get 15 day ago
echo Hijri::get(1)->month()->ago(); // get 1 month ago
echo Hijri::get(2)->year()->ago(); // get 2 year ago
?>

About

extended hijri date library from nazir/go2hi with carbon syntax style

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages