PHP code example of miso93 / czech-holidays

1. Go to this page and download the library: Download miso93/czech-holidays library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

miso93 / czech-holidays example snippets



\Miso93\CzechHolidays::getHolidays(); // for current year
\Miso93\CzechHolidays::getHolidays(2014); // only for year
\Miso93\CzechHolidays::getHolidays(2014, 8); // for year and month
\Miso93\CzechHolidays::isTodayHoliday(); // date('Y-m-d')
\Miso93\CzechHolidays::isDayHoliday(2015, 12, 24);