PHPackages                             chengkangzai/laravel-office-holidays - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. chengkangzai/laravel-office-holidays

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

chengkangzai/laravel-office-holidays
====================================

A Laravel Package that list out holiday that Scraped from https://www.officeholidays.com/countries

v0.0.1(2y ago)0618[1 PRs](https://github.com/chengkangzai/laravel-office-holidays/pulls)MITHTMLPHP &gt;=8.1CI failing

Since May 12Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/chengkangzai/laravel-office-holidays)[ Packagist](https://packagist.org/packages/chengkangzai/laravel-office-holidays)[ Docs](https://github.com/chengkangzai/laravel-office-holidays)[ GitHub Sponsors](https://github.com/CCK)[ RSS](/packages/chengkangzai-laravel-office-holidays/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (14)Versions (9)Used By (0)

A Laravel Package that list out office's Holiday that Scraped from
=============================================================================================================

[](#a-laravel-package-that-list-out-offices-holiday-that-scraped-from-httpswwwofficeholidayscomcountries)

[![Latest Version on Packagist](https://camo.githubusercontent.com/72238576f2d406d28bf2c7517cffc4f80a01e7535aea8f88187c7fb6ff394997/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6368656e676b616e677a61692f6c61726176656c2d6f66666963652d686f6c69646179732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chengkangzai/laravel-office-holidays)[![GitHub Tests Action Status](https://camo.githubusercontent.com/06e8bfde88ca894f3fa8986de6f3c01494c223417cbc2fbc1f21db18cfd0594b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6368656e676b616e677a61692f6c61726176656c2d6f66666963652d686f6c69646179732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/chengkangzai/laravel-office-holidays/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/60af9ad05c7a483716a563d894ff8d67ee6af9f35ff94301788e67068933eed5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6368656e676b616e677a61692f6c61726176656c2d6f66666963652d686f6c69646179732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/chengkangzai/laravel-office-holidays/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/816d9deb9699d438fe51f9c033691c97a0ce15aa470c9339d71191dad895f99b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6368656e676b616e677a61692f6c61726176656c2d6f66666963652d686f6c69646179732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chengkangzai/laravel-office-holidays)

This package is a Laravel Package that list out office's Holiday that Scraped from . The underlying package that is used to scrape the data is using [Saloon](https://docs.saloon.dev/).

Installation
------------

[](#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
-----

[](#usage)

### Get All Holidays for a specific country with its year

[](#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

[](#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
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Ching Cheng Kang](https://github.com/chengkangzai)
- [All Contributors](../../contributors)

Alternatives
------------

[](#alternatives)

[MalaysiaHoliday](https://github.com/afiqiqmal/MalaysiaHoliday) -&gt; This project was inspired by [Hafiq](https://github.com/afiqiqmal), his package [MalaysiaHoliday](https://github.com/afiqiqmal/MalaysiaHoliday) is a great alternative for Malaysian Holidays, this package does not limit the usage for laravel.

[Spatie Holidays](https://github.com/spatie/holidays) -&gt; 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
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance60

Regular maintenance activity

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 67.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

730d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a370741c6674c16bdde48fe05be751779341eea55bf51bd75eb165e146a836fc?d=identicon)[chengkangzai](/maintainers/chengkangzai)

---

Top Contributors

[![chengkangzai](https://avatars.githubusercontent.com/u/43839286?v=4)](https://github.com/chengkangzai "chengkangzai (38 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (13 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")

---

Tags

laravelccklaravel-office-holidays

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/chengkangzai-laravel-office-holidays/health.svg)

```
[![Health](https://phpackages.com/badges/chengkangzai-laravel-office-holidays/health.svg)](https://phpackages.com/packages/chengkangzai-laravel-office-holidays)
```

###  Alternatives

[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1221.1k](/packages/codebar-ag-laravel-docuware)[hotwired-laravel/stimulus-laravel

Use Stimulus in your Laravel app

3015.3k1](/packages/hotwired-laravel-stimulus-laravel)[codebar-ag/laravel-zammad

Zammad integration with Laravel

106.1k](/packages/codebar-ag-laravel-zammad)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
