PHP code example of kiralyta / laravel-szunetnapok-api

1. Go to this page and download the library: Download kiralyta/laravel-szunetnapok-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/ */

    

kiralyta / laravel-szunetnapok-api example snippets


return [

    /*
    |--------------------------------------------------------------------------
    | Application Name
    |--------------------------------------------------------------------------
    |
    | This value is the name of your application. This value is used when the
    | framework needs to place the application's name in a notification or
    | any other location as 

use Pinasen\SzunetNapok\SzunetNapok;

$year = 2021;

// Év megadása nem kötelező.
// Alapértelmezetten az aktuális évet kéri le
$szunetnapok = SzunetNapok::getYear($year);