1. Go to this page and download the library: Download joaosalless/holidays-br 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/ */
joaosalless / holidays-br example snippets
$util = new \Joaosalless\Holiday\Util();
// Feriado nacional
$holiday = $util->getHoliday('BR', '01.01.2017');
// Feriado estadual
$holiday = $util->getHoliday('BR', '09.07.2017', 'SP');
// Feriado municipal
$holiday = $util->getHoliday('BR', '25.01.2017', 'SP', '3550308');
$util = new \Joaosalless\Holiday\Util();
$holiday = $util->isHoliday('BR', '01.01.2018');