PHPackages                             robledocampos/year-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. robledocampos/year-holidays

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

robledocampos/year-holidays
===========================

Get the holidays of a region, with respective weekday, by year.

00PHP

Since Apr 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/robledocampos/year-holidays)[ Packagist](https://packagist.org/packages/robledocampos/year-holidays)[ RSS](/packages/robledocampos-year-holidays/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Year Holidays
=============

[](#year-holidays)

Get the holidays of a region, with respective weekday, by year.

Available Holidays Classes
--------------------------

[](#available-holidays-classes)

- World
- Brazil
- São Paulo State
- São Paulo City

Importing the Package
---------------------

[](#importing-the-package)

How to Use
----------

[](#how-to-use)

### Class Instance

[](#class-instance)

Create a new instance of the holidays region you want and pass the year as string parameter, like the following.

`$brazilHolidays = new brazilHolidaysModel("2024");`

### Response Method

[](#response-method)

With this method you could get the holidays.

`echo $brazilHolidays->printHolidays();`

```
{
    "main":{
        "2024-01-01":{
            "date":"2024-01-01",
            "name":"universal fraternization",
            "weekday":"monday",
            "coverage":"world"
        },
        "2024-02-13":{
            "date":"2024-02-13",
            "name":"carnaval",
            "weekday":"tuesday",
            "coverage":"brazil"
        },
        "2024-03-29":{
            "date":"2024-03-29",
            "name":"sexta-feira da paixão",
            "weekday":"friday",
            "coverage":"brazil"
        },
        "2024-03-31":{
            "date":"2024-03-31",
            "name":"easter",
            "weekday":"sunday",
            "coverage":"world"
        },
        "2024-04-21":{
            "date":"2024-04-21",
            "name":"tiradentes",
            "weekday":"sunday",
            "coverage":"brazil"
        },
        "2024-05-01":{
            "date":"2024-05-01",
            "name":"labor day",
            "weekday":"wednesday",
            "coverage":"world"
        },
        "2024-05-30":{
            "date":"2024-05-30",
            "name":"corpus christi",
            "weekday":"thursday",
            "coverage":"brazil"
        },
        "2024-09-07":{
            "date":"2024-09-07",
            "name":"independência",
            "weekday":"saturday",
            "coverage":"brazil"
        },
        "2024-10-12":{
            "date":"2024-10-12",
            "name":"nossa senhora aparecida",
            "weekday":"saturday",
            "coverage":"brazil"
        },
        "2024-11-02":{
            "date":"2024-11-02",
            "name":"finados",
            "weekday":"saturday",
            "coverage":"brazil"
        },
        "2024-11-15":{
            "date":"2024-11-15",
            "name":"proclamação da república",
            "weekday":"friday",
            "coverage":"brazil"
        },
        "2024-11-20":{
            "date":"2024-11-20",
            "name":"consciência negra",
            "weekday":"wednesday",
            "coverage":"brazil"
        },
        "2024-12-25":{
            "date":"2024-12-25",
            "name":"christmas",
            "weekday":"wednesday",
            "coverage":"world"
        }
    }
}

```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![robledocampos](https://avatars.githubusercontent.com/u/4015598?v=4)](https://github.com/robledocampos "robledocampos (72 commits)")

### Embed Badge

![Health badge](/badges/robledocampos-year-holidays/health.svg)

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

PHPackages © 2026

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