2017 © Pedro Peláez
 

library japanese-holiday

image

japanese-holiday/japanese-holiday

  • Tuesday, January 9, 2018
  • by nanaweb
  • Repository
  • 1 Watchers
  • 23 Stars
  • 14,047 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 6 Versions
  • 14 % Grown

The README.md

Build Status, (*1)

Japanese.Holiday

calculates holidays in Japan., (*2)

Installation

composer install japanese-holiday/japanese-holiday

Usage

Get list of holidays for a year

<?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(); // "元旦"

Check whether a date is a holiday or not

<?php
use Japanese\Holiday\Repository as HolidayRepository;

$holidayRepository = new HolidayRepository();
$holidayRepository->isHoliday('2017-01-01'); // true
$holidayRepository->isHoliday('2017-01-04'); // false

Build new yml for a specific year

php scripts/newyear.php XXXX

The Versions

09/01 2018

dev-master

9999999-dev

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

09/01 2018

v2.0.2

2.0.2.0

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

09/01 2018

dev-yml-2018

dev-yml-2018

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

02/12 2017

v2.0.1

2.0.1.0

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

16/12 2016

v2.0.0

2.0.0.0

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

03/09 2015

v1.0

1.0.0.0

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires