PHP code example of liujia / holiday-or-workday
1. Go to this page and download the library: Download liujia/holiday-or-workday 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/ */
liujia / holiday-or-workday example snippets
array(
'status' => 1,
)
return array (
'2016-12-31' =>
array (
'status' => 3,
),
'2017-1-1' =>
array (
'status' => 3,
),
...
$obj = new \HolidayOrWorkday\holidayOrWorkday('申请的appkey');
var_dump($obj->isWorkday('2017-12-03'));