PHPackages                             nojimage/holiday-jp - 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. nojimage/holiday-jp

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

nojimage/holiday-jp
===================

This package will obtain information on Japanese public holidays based on the calendar information from the National Astronomical Observatory of Japan.

v1.2.1(11mo ago)01.0k↓33.3%MITPHPPHP ^8.2CI passing

Since Jul 22Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/nojimage/holiday-jp-php)[ Packagist](https://packagist.org/packages/nojimage/holiday-jp)[ RSS](/packages/nojimage-holiday-jp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (6)Versions (5)Used By (0)

Holiday in Japan
================

[](#holiday-in-japan)

[![License](https://camo.githubusercontent.com/742a36f9bfca020a487773defeff4c2b63a0e3d3c986862d43fa1f5a5a665738/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6e6f6a696d6167652f686f6c696461792d6a702d706870)](https://camo.githubusercontent.com/742a36f9bfca020a487773defeff4c2b63a0e3d3c986862d43fa1f5a5a665738/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6e6f6a696d6167652f686f6c696461792d6a702d706870)[![Packagist Version (custom server)](https://camo.githubusercontent.com/d755ff028703930b2862d9d871eb132761fa037529ad186983c43f9c2bf2a990/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6f6a696d6167652f686f6c696461792d6a70)](https://camo.githubusercontent.com/d755ff028703930b2862d9d871eb132761fa037529ad186983c43f9c2bf2a990/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6f6a696d6167652f686f6c696461792d6a70)[![Build Status](https://github.com/nojimage/holiday-jp-php/actions/workflows/ci.yml/badge.svg)](https://github.com/nojimage/holiday-jp-php/actions/workflows/ci.yml)

Overview
--------

[](#overview)

This package obtains information on Japanese public holidays based on the calendar information from the National Astronomical Observatory of Japan.

NOTE: Public holiday information before 2001 is not available.

Source: [National Astronomical Observatory of Japan](https://eco.mtk.nao.ac.jp/koyomi/cande/calendar.html)

Requirements
------------

[](#requirements)

- PHP 8.2 or above

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

[](#installation)

```
composer require nojimage/holiday-jp
```

Usage
-----

[](#usage)

```
use Nojimage\HolidayJp\HolidayJp;

$holidayJp = new HolidayJp();

// Get a list of holidays in 2024
$holidays = $holidayJp->getHolidays(2024);

// Get a list of holidays for the specified period
$holidays = $holidayJp->getHolidays(new DateTime('2024-01-01'), new DateTime('2024-12-31'));

// Check if a date is a holiday
$holidayJp->isHoliday('2024-01-01'); // true
$holidayJp->isHoliday('2024-01-02'); // false
```

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

[](#contributing)

If you find any bugs or have suggestions for new features, please create an issue or submit a pull request.

License
-------

[](#license)

This project is released under the MIT License.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance51

Moderate activity, may be stable

Popularity19

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 ~107 days

Total

4

Last Release

344d ago

PHP version history (2 changes)v1.0.0PHP ^7.4 || ^8.0

v1.2.1PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![nojimage](https://avatars.githubusercontent.com/u/100564?v=4)](https://github.com/nojimage "nojimage (11 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/nojimage-holiday-jp/health.svg)

```
[![Health](https://phpackages.com/badges/nojimage-holiday-jp/health.svg)](https://phpackages.com/packages/nojimage-holiday-jp)
```

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[naoray/nova-json

Nova json field to spread a json column throughout multiple fields.

37478.6k](/packages/naoray-nova-json)[selective/array-reader

A strictly typed array reader

1168.7k5](/packages/selective-array-reader)[wyrihaximus/minify-html

Html minifier for CakePHP3

18148.3k1](/packages/wyrihaximus-minify-html)[unclecheese/eventcalendar

Event Calendar for the SilverStripe CMS

3215.2k8](/packages/unclecheese-eventcalendar)[silverstripe/event-calendar

Event Calendar for the SilverStripe CMS

318.5k3](/packages/silverstripe-event-calendar)

PHPackages © 2026

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