1. Go to this page and download the library: Download phptcloud/isdayoff-sdk 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/ */
phptcloud / isdayoff-sdk example snippets
use isDayOff\Client\IsDayOff;
$client = new IsDayOff();
$date = new DateTime('now');
$result = $client->date()->isDayOff($date);
if($result) {
echo 'is day off.';
} else {
echo 'working day.';
}