PHP code example of natz92 / korean-holiday

1. Go to this page and download the library: Download natz92/korean-holiday 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/ */

    

natz92 / korean-holiday example snippets


use Korean\Holiday\KoreanHolidays;

$holiday = new KoreanHolidays();
$holiday->isHoliday('2019-05-05'); // return true
$holiday->getHoliday('2019-06-06'); // return Holiday Data
$holiday->getHolidayForYear(2019); // return all Holidays in 2019