calculates holidays in Japan.
composer install japanese-holiday/japanese-holiday
<?php
use Japanese\Holiday\Repository as HolidayRepository;
$holidayRepository = new HolidayRepository();
$holidays = $holidayRepository->getHolidaysForYear(2017);
$holidays['2017-01-01']->getDate(); // equals new \DateTime('2016-01-01')
$holidays['2017-01-01']->getName(); // "元旦"
<?php
use Japanese\Holiday\Repository as HolidayRepository;
$holidayRepository = new HolidayRepository();
$holidayRepository->isHoliday('2017-01-01'); // true
$holidayRepository->isHoliday('2017-01-04'); // false
php scripts/newyear.php XXXX