afiqiqmal/countryholiday

to get all holidays date in 133 countries

1.0.1 2017-06-16 09:29 UTC

This package is auto-updated.

Last update: 2024-10-29 04:53:16 UTC


README

get holiday list from selected country

Usage

Holidays in current years

Holiday::init()->country("malaysia")->getAllRegionHoliday()->get();

Holidays in specific years

Holiday::init()->country("malaysia")->getAllRegionHoliday("2017")->get();

Holidays by regional

Holiday::init()->country("uae")->getRegionHoliday("Selangor")->get();

Holidays by regional in 2017

Holiday::init()->country("usa")->getRegionHoliday("arizona","2017")->get();

Grouping and Filter result

Holiday::init()->country("india")->getAllRegionHoliday()->groupByMonth()->get();
Holiday::init()->country("malaysia")->getAllRegionHoliday()->filterByMonth("January")->get();  //date('F')

install

composer require afiqiqmal/countryholiday

Or

require{
	"afiqiqmal/countryholiday": "^1.0.0"
}

Source

Scraped from - http://www.officeholidays.com/countries/malaysia

MIT Licence