Yasumi v1.7.0 Release Notes

Release Date: 2017-12-11 // over 6 years ago
  • ๐Ÿš€ A new release was long overdue and v1.7.0 has some nice enhancements... Four new countries have been added (Latvia, Lithuania, Hungary and Switzerland) making the total of holiday providers 96! (31 countries and 65 sub-regions).

    Instead of giving the country name as a parameter, you can now also use the ISO3166_2 code to instantiate a Holiday object, which in some cases makes more sense. Also, all filters implement the Countable interface so you can use the ->count() method, which will return the correct number of (filtered) holidays.

    ๐Ÿš€ Heads up! v1.7.0 will be the last release supporting PHP5.x. PHP7 has been out for a long time and Yasumi can definitely benefit from the new features in PHP7. Likely the PHP7 only branch will start as v2.0.0.

    As always a big thanks to all the contributors!

    Implemented enhancements:

    • Holiday Provider for Latvia. #70 (lukosius)
    • Holiday Provider for Lithuania. #67 (lukosius)
    • Holiday Provider for Hungary. #57 (AronNovak)
    • Holiday Provider for Switzerland. #56 (qligier)
    • All filters implement the Countable interface allowing you to use the ->count() method. #77
    • Sometimes it is more convenient to be able to create a Yasumi instance by ISO3166 code rather than Yasumi's Holiday Provider name. A new function createByISO3166_2 has been added to allow for that. #62 (huehnerhose)
    • ๐ŸŒ Missing translations (de_DE) for Easter Sunday and Whitsunday. #60 (IceShack)
    • Made calculate method public and use of proper camel casing. #73 (patrickreck)
    • โฌ†๏ธ Upgraded Faker Library to version 1.7
    • ๐Ÿ“‡ Renamed the holiday type NATIONAL to OFFICIAL. Subregions may have official holidays and the name NATIONAL doesn't suit these situations. #65
    • โฌ†๏ธ Upgraded PHP-CS-Fixer to version 2.6

    Resolved Issues:

    • โœ… Corrected Geneva (Switzerland) unit test to ensure some holidays that are established at a particular year are handled as such.
    • Repentance Day is an official holiday in Saxony (Germany) #63
    • ๐ŸŒ Corrected the Easter Sunday translation for Austria (de_AT) #66
    • โœ… Corrected Hungary unit test to ensure holidays that are established at a particular year are handled as such.
    • โž• Added missing Summer Bank Holiday for the United Kingdom. #64