1. Go to this page and download the library: Download rotous/holidays-nl 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/ */
rotous / holidays-nl example snippets
// Make sure you use the correct path to the autoload file!
lidays(1972);
/*
array(9) {
[0]=>
string(10) "01-01-1972"
[1]=>
string(10) "02-04-1972"
[2]=>
string(10) "03-04-1972"
[3]=>
string(10) "01-05-1972"
[4]=>
string(10) "11-05-1972"
[5]=>
string(10) "21-05-1972"
[6]=>
string(10) "22-05-1972"
[7]=>
string(10) "25-12-1972"
[8]=>
string(10) "26-12-1972"
}
*/
$api->isHoliday('01-05-1972'); // true
$api->getEaster(1972); // "02-04-1972"
$api->getSecondEasterDay(1972); // "03-04-1972"