PHP code example of noahnxt / laravel-open-holiday-api

1. Go to this page and download the library: Download noahnxt/laravel-open-holiday-api 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/ */

    

noahnxt / laravel-open-holiday-api example snippets


$holidayApi = new \NoahNxT\LaravelOpenHolidaysApi\OpenHolidaysApi();
$holidays = $holidayApi
    ->holidays()
    ->publicHolidays(
        'BE',
        'NL',
        '2023-01-01',
        '2023-12-31',
        'NL-BE'
        );