This branch of Yasumi reflects the code up until version 1.8. With the release of Yasumi version 2.0, support for PHP 5 has ended. This code base serves as a support branch and will only receive the most critical bug fixes. Please note that v1.8.x works both in PHP 5 and PHP 7, but the code base hasn't been upgraded to PHP 7.
It is highly recommended to upgrade to PHP7 and Yasumi v2.0.0 to enjoy the latest changes and improvements. More information can be found here: Yasumi Release v2
Yasumi (Japanese for 'Holiday'「休み」) is an easy PHP library to help you calculate the dates and names of holidays and other special celebrations from various countries/states. Many services exist on the internet that provide holidays, however are either not free or offer only limited information. In addition, no complete PHP library seems to exist today that covers a wide range of holidays and countries, except maybe PEAR's Date_Holidays which unfortunately hasn't been updated for a long time.
The goal of Yasumi is to be powerful while remaining lightweight, by utilizing PHP native classes wherever possible. Yasumi's calculation is provider-based (i.e. by country/state) so it's easy to add new holiday providers that calculate holidays. The methods of Yasumi can be used to get a holiday's date and name in various languages.
Yasumi’s documentation is available on https://azuyalabs.github.io/yasumi/. You will find all the necessary information how to install Yasumi and also recipes how you can use Yasumi in your project.
Yasumi is open-sourced software licensed under the MIT License (MIT). Please see LICENSE for more information.