PHP code example of codemonauts / craft-holidays

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

    

codemonauts / craft-holidays example snippets

 php
return [
    // Default country code in ISO 3166-2 (https://en.wikipedia.org/wiki/ISO_3166-2) notation.
    // E.g. DE-HE, US-CA 
    'defaultCode' => '',
];