afiqiqmal / countryholiday
to get all holidays date in 133 countries
Installs: 26
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
Requires
- php: >=5.3.0
- fabpot/goutte: ^3.2
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