PHPackages                             dkvhin/ph-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. dkvhin/ph-holidays

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

dkvhin/ph-holidays
==================

Fetch Holidays from Philippine government website

v1.2.0(1y ago)0908↑56.7%MITHTMLPHP ^8.1CI passing

Since Aug 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dkvhin/ph-holidays)[ Packagist](https://packagist.org/packages/dkvhin/ph-holidays)[ Docs](https://github.com/dkvhin/ph-holidays)[ RSS](/packages/dkvhin-ph-holidays/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (4)Versions (12)Used By (0)

Fetch Philippine Holidays
=========================

[](#fetch-philippine-holidays)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a2d1696f94c62c2319b8e70fce02e8078e9425881071074225d5b9f917e61547/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646b7668696e2f70682d686f6c69646179732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dkvhin/ph-holidays)[![Tests](https://camo.githubusercontent.com/9a65f54e2450625634981084f87bde34025297150bdd98df15b30f98c7a0eb5e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f646b7668696e2f70682d686f6c69646179732f7068702e796d6c3f6272616e63683d6d6173746572266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/dkvhin/ph-holidays/actions/workflows/php.yml)[![Total Downloads](https://camo.githubusercontent.com/11a459a8a10c8abe509d87febdcf7c213e67cacaf18e621cb829a814c324f3fb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646b7668696e2f70682d686f6c69646179732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dkvhin/ph-holidays)

This package can fetch regular and special holidays from the official website

NOTE: This is not yet working 100% as the website is using a bot checker ( cloudflare ), this can cause errors if used in production.

```
use Dkvhin\PhHolidays\PhilippineHolidays;

// for the current year
$holidays = PhilippineHolidays::fetch();

// returns an array of regular holidays
$regular = $holidays->regular();

// returns an array of special holidays
$special = $holidays->special();
```

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

[](#installation)

You can install the package via composer:

```
composer require dkvhin/ph-holidays
```

Usage
-----

[](#usage)

```
use Dkvhin\PhHolidays\PhilippineHolidays;

// for the current year
$holidays = PhilippineHolidays::fetch();

// you can also pass specific year
// NOTE that the website only provides the last 6 years worth of holidays
// Advance year are not always available from the website
// eg. ( current year is 2024, holidays for 2025 might not be available yet until the end of the year)
$holidays = PhilippineHolidays::fetch(2022);
```

Testing
-------

[](#testing)

```
composer test
```

Credits
-------

[](#credits)

- [Ervin Musngi](https://github.com/dkvhin)

License
-------

[](#license)

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

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Every ~14 days

Recently: every ~35 days

Total

11

Last Release

554d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4ecdf60c6531a6093808b3ac4d44b551814688498fd9586ed6c8d9e73972122c?d=identicon)[dkvhin](/maintainers/dkvhin)

---

Top Contributors

[![dkvhin](https://avatars.githubusercontent.com/u/7764035?v=4)](https://github.com/dkvhin "dkvhin (24 commits)")

---

Tags

holidaysphilippines

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/dkvhin-ph-holidays/health.svg)

```
[![Health](https://phpackages.com/badges/dkvhin-ph-holidays/health.svg)](https://phpackages.com/packages/dkvhin-ph-holidays)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[statamic/cms

The Statamic CMS Core Package

4.8k3.6M985](/packages/statamic-cms)[spatie/holidays

Calculate public holidays

402860.1k2](/packages/spatie-holidays)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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