hubaishan / HijriDateLib

php classes to view and manage Hijri Calendar
48 stars 22 forks source link

HijriDateLib

php classes to view and manage Hijri Calendar.

the lib has two algorithms to calculte Hijri Date:

1-Hijri Tabular algorithm

2- Um Al-Qura algoritm

Lib Features

  1. Two algorithms to calculte Hijri Date: Hijri Tabular algorithm, Um Al-Qura algorithm.
  2. The lib allows you to adjust the Hijri Um Al-Qura algorithm and save the adjustment.
  3. The lib has a full feature class to manage the adjustments of Um Al-Qura Calendar.
  4. The Lib has a datetime class extends the real php datetime class, and allows you to return Hijri Calendar with the Gregorian Calendar in one format and one command.
  5. The Hijri datetime class have all real php class Gregorian Calendar Functions plus main functions for Hijri Calendar.
  6. The Lib returns the Hijri Calendar months in 20 international Languages.
  7. The Um Al-Qura algorithm works from 1318 A.H to 1500 A.H. and Tabular Algorithm work from year 5499 before Hijra to 1,500,000 A.H, If Um Al-Qura algorithm selected and the date out of range the uses Tabular Algorithm instead.
  8. The has full api documents.

Requirments

The HijriDatLib requires at php version 5.3 at least. It is compatible up to php 8.3 .