Skip to content

Wrapper class of package Yasumi/Yasumi for Laravel.

Notifications You must be signed in to change notification settings

inquid/laravel-yasumi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-yasumi

Wrapper class of package Yasumi/Yasumi for Laravel.

Install

composer require shibuyakosuke/laravel-yasumi

Edit .env like below.

YASUMI_COUNTRY=Japan
YASUMI_LOCALE=ja_JP

Usage

$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'

About

Wrapper class of package Yasumi/Yasumi for Laravel.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%