Skip to content

Releases: spatie/opening-hours

1.8.1

18 Oct 22:14
5f72cb5
Compare
Choose a tag to compare
  • overspilling timerange will now contain start time

1.8.0

17 Sep 13:34
68ddc8e
Compare
Choose a tag to compare
  • Added nextClose

1.7.0

02 Aug 06:58
1b6eed8
Compare
Choose a tag to compare
  • Added additional helpers on Time

1.6.0

26 Mar 08:51
Compare
Choose a tag to compare
  • Added the ability to pass a DateTime instance to mutate to Time::toDateTime

1.5.0

26 Feb 10:05
Compare
Choose a tag to compare
  • Added OpeningHours::forWeekCombined()

1.4.0

15 Sep 10:14
Compare
Choose a tag to compare
  • Added the ability to add recurring exceptions

1.3.1

13 Sep 19:54
Compare
Choose a tag to compare
  • Fixed bug where checking on times starting at midnight would cause an infinite loop

1.3.0

01 Jun 13:05
Compare
Choose a tag to compare
  • Added regularClosingDays, regularClosingDaysISO and exceptionalClosingDates methods

1.2.0

03 Jan 10:47
Compare
Choose a tag to compare
  • Added asStructuredData to retrieve the opening hours as a Schema.org structured data array
  • Added nextOpen method to determine the next time the business will be open
  • Added utility methods: OpeningHours::map, OpeningHours::flatMap, OpeningHours::mapExceptions, OpeningHours::flatMapExceptions,OpeningHoursForDay::map and OpeningHoursForDay::empty

1.1.0

09 Nov 10:10
Compare
Choose a tag to compare
  • Added timezone support