PHP code example of shibuyakosuke / laravel-yasumi
1. Go to this page and download the library: Download shibuyakosuke/laravel-yasumi 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/ */
shibuyakosuke / laravel-yasumi example snippets
$carbon = Carbon::make('2021-01-01');
$holiday = \Holiday::get($carbon);
dd($holiday); // '元日'
$carbon = Carbon::make('2021-01-01');
$holiday = \Holiday::isHoliday($carbon);
dd($holiday); // true'