Skip to content

Releases: rlanvin/php-rrule

v2.2.0

01 Nov 11:52
Compare
Choose a tag to compare

Added

  • Persian (Farsi) translation #72
  • Support for Windows timezone #69

Fixed

  • Fix valid rules wrongly detected as not producing results, and cut short after MAX_CYCLES #78
  • Fix RRule::createFromRfcString not detecting RSet properly if the rule was lowercase
  • [internal] Replace static variables by array constants (permitted since PHP 5.6). Shouldn't break backward compatibility unless you were doing weird things with this lib in the first place.

v2.1.0

30 May 08:40
Compare
Choose a tag to compare

Fixed

  • Fix locale format for i18n files without intl extension #67

Added

  • Added new methods to RSet: removeDate, clearDates, removeExDate and clearExDates #66

v2.0.0

16 Mar 11:06
Compare
Choose a tag to compare
  • Rewrite the core algorithm to use a native PHP generator, drop compability with PHP < 5.6 #43
  • Add support for PHP 7.3

Added

  • New option custom_path to humanReadable() to use custom translation files #56
  • New helpers methods #60
    • getOccurrencesBefore
    • getOccurrencesAfter
    • getNthOccurrencesBefore
    • getNthOccurrencesAfter
    • getNthOccurrencesFrom

v2.0.0-rc1

13 Jan 16:51
Compare
Choose a tag to compare
v2.0.0-rc1 Pre-release
Pre-release
  • Rewrite the core algorithm to use a native PHP generator, drop compability with PHP < 5.6 #43

Added

  • New option custom_path to humanReadable() to use custom translation files #56
  • New helpers methods #60
    • getOccurrencesBefore
    • getOccurrencesAfter
    • getNthOccurrencesBefore
    • getNthOccurrencesAfter
    • getNthOccurrencesFrom

v1.6.3

13 Jan 09:53
Compare
Choose a tag to compare

Fixed

  • Fix error when timezone is an offset instead of an olson name. #61
  • Fix VALUE is a valid param of EXDATE #62

v1.6.2

18 Sep 09:55
Compare
Choose a tag to compare

Fixed

  • Fix typo in NL translation #53

v1.6.1

13 Apr 09:29
Compare
Choose a tag to compare

Fixed

  • Null check to prevent 0 (false) values being lost when exporting to RFC string #50
  • Fix warning in humanReadable() #44
  • Fix typo in NL translation #46

v1.6.0

11 Oct 12:25
Compare
Choose a tag to compare

Added

  • German translation #38
  • Add include_until option to humanReadable to omit the "until" part of the rule #36

v1.5.1

15 May 09:17
Compare
Choose a tag to compare

Fixed

  • Throw exception when passing a float instead of an int (e.g. INTERVAL=1.5) instead of casting silently
  • Variable name typo #34

v1.5.0

07 May 19:35
Compare
Choose a tag to compare

Added

  • Add explicit_infinite and include_start options to humanReadable to respectivity omit "forever" and the start date from the sentence.
  • RSet constructor now accepts a string to build a RSET from a RFC string #26
  • New factory method RRule::createFromRfcString() to build either a RRule or a RSet from a string
  • Add a $limit parameter to getOccurrences() and getOccurrencesBetween() to make working with infinite rule easier
  • Add a $dtstart parameter to RRule and RSet constsructor to specify dtstart when working with a RFC string without DTSTART.

Fixed

  • When creating a RRule, the RFC parser will not accept multiple DTSTART or RRULE lines

Deprecated

  • RRule::parseRfcString is deprecated. Note: it wasn't part of the documentation in the first place, but just in case someone is using it, it's not removed yet.