Releases: spatie/opening-hours
Releases · spatie/opening-hours
2.11.1: Fix compatibility with PHP 8.1
Support PHP 8.1
2.11.0: Add dateTimeClass option to use other class for date objects
Add dateTimeClass option to use other class for date objects
2.10.1: Fix "hours" merge in mergeOverlappingRanges
mergeOverlappingRanges now properly handle hours for each hour or encapsulating a list of hours.
2.10.0: Add "hours" key support in mergeOverlappingRanges
mergeOverlappingRanges now handles "hours" key and clean "data" keys before merging ranges
2.9.1: Support timezone in isOpenOn
- Use OpeningHours timezone for isOpenOn()
2.9.0: Allow isOpenOn() to take date string as parameter
Allow isOpenOn() to take date string as parameter
2.8.0: Add diff methods
2.7.2: Fix merge with special options
Fix support of data/filters/overflow with OpeningHours::createAndMergeOverlappingRanges and OpeningHours::mergeOverlappingRanges
2.7.1: Add InvalidTimezone exception
Add InvalidTimezone
exception
2.7.0: Add forWeekConsecutiveDays method
Add forWeekConsecutiveDays method