chengkangzai/laravel-office-holidays

A Laravel Package that list out holiday that Scraped from https://www.officeholidays.com/countries
1,987 1
Install
composer require chengkangzai/laravel-office-holidays
Latest Version:v0.1.0
PHP:>=8.2
Laravel:10 – 13
License:MIT
Last Updated:Oct 12, 2026
Links: GitHub  ·  Packagist
Maintainer: chengkangzai

A Laravel Package that list out office's Holiday that Scraped from https://www.officeholidays.com/countries

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package is a Laravel Package that list out office's Holiday that Scraped from https://www.officeholidays.com/. The underlying package that is used to scrape the data is using Saloon.

Installation

You can install the package via composer:

composer require chengkangzai/laravel-office-holidays

You can publish the config file with:

php artisan vendor:publish --tag="laravel-office-holidays-config"

This is the contents of the published config file:

return [
    'cache' => [
        'driver' => 'file',
        'duration' => 60 * 60 * 24 * 7 // 1 week
    ]
];

Usage

Get All Holidays for a specific country with its year

$laravelOfficeHolidays = new CCK\LaravelOfficeHolidays();
app(LaravelOfficeHolidays::class)->getAllHolidays('malaysia', 2024)

Get All Holidays for a specific state of the country with its year

$laravelOfficeHolidays = new CCK\LaravelOfficeHolidays();
app(LaravelOfficeHolidays::class)->getHolidaysByState('malaysia', 2024, 'johor')

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

Alternatives

MalaysiaHoliday -> This project was inspired by Hafiq, his package MalaysiaHoliday is a great alternative for Malaysian Holidays, this package does not limit the usage for laravel.

Spatie Holidays -> This package is a great alternative for holidays from spatie, it is more robust and does not rely on scraping data from the internet.

License

The MIT License (MIT). Please see License File for more information.

Related Packages

chengkangzai/laravel-waha-saloon-sdk

WAHA SDK that is generated from WAHA postman collection that is wrapped in Saloo...

7,743 0
spatie/laravel-google-fonts

Manage self-hosted Google Fonts in Laravel apps

1,435,056 493
tightenco/jigsaw

Simple static sites with Laravel's Blade.

473,529 2,253
roquie/laravel-dusk-select2

Select2.js support for the Laravel Dusk testing.

370,668 41
haruncpi/laravel-log-reader

A simple and beautiful laravel log reader

362,704 381

Version History

Version Released PHP Laravel License
v0.1.0 >=8.2 ^10.0||^11.0||^12.0||^13.0 MIT
v0.0.1 >=8.1 ^10.0||^11.0 MIT