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)0741↑50%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 1mo 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

33

—

LowBetter than 75% of packages

Maintenance40

Moderate activity, may be stable

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

508d 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

[spatie/holidays

Calculate public holidays

392604.1k1](/packages/spatie-holidays)[ashallendesign/favicon-fetcher

A Laravel package for fetching website's favicons.

190272.4k3](/packages/ashallendesign-favicon-fetcher)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[geoffreyrose/us-holidays

US Holidays Wrapper for the Carbon DateTime Library.

62717.0k2](/packages/geoffreyrose-us-holidays)[citco/carbon

This is a wrapper for nesbot/carbon which also calculates which days are British bank holidays (England &amp; Wales only).

17400.1k5](/packages/citco-carbon)[holidayapi/holidayapi-php

Official PHP library for Holiday API

35213.3k1](/packages/holidayapi-holidayapi-php)

PHPackages © 2026

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