Skip to content

Releases: geoffreyrose/us-holidays

Reset the Index when using setHolidays()

26 Jun 07:27
c981a02
Compare
Choose a tag to compare
2.2.1

Returning holiday array with array_values() to reset the index (#7)

New Business Day Functions and Set Which Holidays To Use

28 Mar 23:25
763a15c
Compare
Choose a tag to compare
  • Code refactor
  • Adds several business day functions
  • Adds ability to set which holidays to use
  • Adds ability to override which holidays are "Bank Holidays"
  • Adds PHP 8 Support

New Functions: getNextHolidays() and getPrevHolidays()

10 Nov 09:53
Compare
Choose a tag to compare

Added:

  • getNextHolidays()
  • getPrevHolidays()
  • getNextHolidayName()
  • getNextHolidayDays()
  • getPrevHolidayName()
  • getPrevHolidayDays()

https://geoffreyrose.github.io/us-holidays/#getNextHolidays

Fixed a bug with isBankHoliday when the current day is on a weekend

Fixed bug with showing today is a holiday

15 Feb 20:42
Compare
Choose a tag to compare

fixed a bug when today is a holiday. It wouldn't show today is a holiday unless it was exactly midnight when using getHolidaysInDays or getHolidaysInYears

Anonymous Function With addHoliday

06 Feb 21:20
Compare
Choose a tag to compare

Fixed a bug when using an anonymous function for the date with addHoliday

v2 Is Released

30 Jan 08:42
Compare
Choose a tag to compare

Full Documentation

https://geoffreyrose.github.io/us-holidays/

Add Support for 9 Additional Holidays

11 Dec 05:44
Compare
Choose a tag to compare

New Holidays Supported

  • Ash Wednesday
  • Easter
  • Good Friday
  • Hanukkah
  • Orthodox Easter
  • Palm Sunday
  • Passover
  • Rosh Hashanah
  • Yom Kippur

Total holidays supported is now at 41