PHPackages                             tiennk1995dev/japanese-holidays\_php - 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. tiennk1995dev/japanese-holidays\_php

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

tiennk1995dev/japanese-holidays\_php
====================================

A PHP package to calculate Japanese national holidays

v1.0.0(1y ago)01MITPHPPHP &gt;=7.4

Since Jan 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/nguyenkhactien/japanese-holidays_php)[ Packagist](https://packagist.org/packages/tiennk1995dev/japanese-holidays_php)[ RSS](/packages/tiennk1995dev-japanese-holidays-php/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

Japanese Holidays
=================

[](#japanese-holidays)

A PHP package to calculate Japanese national holidays.

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

[](#installation)

Install the package via Composer:

```
composer require tiennk1995dev/japanese-holidays:^1.0.0
```

Usage
-----

[](#usage)

```
use JapaneseHolidays\HolidayCalculator;
use Carbon\Carbon;

$calculator = new HolidayCalculator();
$holidays = $calculator->getHolidays(2025);

foreach ($holidays as $holiday) {
    echo $holiday['date']->format('Y-m-d') . ' - ' . $holiday['name'] . ' (' . $holiday['nameEn'] . ')' . PHP_EOL;
}

if ($calculator->isHoliday(Carbon::create(2025))) {
    echo 'January 1, 2025 is a holiday.';
}

$name = $calculator->getHolidayName(Carbon::create(2025), 'en');
echo 'The holiday on January 1, 2025 is: ' . $name;

$start = Carbon::create(2025);
$end = Carbon::create(2025, 3, 31);
$holidaysBetween = $calculator->getHolidaysBetween($start, $end);
echo 'There are ' . $holidaysBetween->count() . ' holidays between ' . $start->format('Y-m-d') . ' and ' . $end->format('Y-m-d') . '.';

$workDays = $calculator->countWorkDays($start, $end);
echo 'There are ' . $workDays . ' work days between ' . $start->format('Y-m-d') . ' and ' . $end->format('Y-m-d') . '.';
```

Testing
-------

[](#testing)

Run the tests using PHPUnit:

```
vendor/bin/phpunit tests
```

License
-------

[](#license)

The MIT License (MIT). See [LICENSE](LICENSE) for more information.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

525d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11583964?v=4)[tiennk1995dev](/maintainers/nguyenkhactien)[@nguyenkhactien](https://github.com/nguyenkhactien)

---

Top Contributors

[![nguyenkhactien](https://avatars.githubusercontent.com/u/11583964?v=4)](https://github.com/nguyenkhactien "nguyenkhactien (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tiennk1995dev-japanese-holidays-php/health.svg)

```
[![Health](https://phpackages.com/badges/tiennk1995dev-japanese-holidays-php/health.svg)](https://phpackages.com/packages/tiennk1995dev-japanese-holidays-php)
```

###  Alternatives

[illuminate/support

The Illuminate Support package.

630113.0M41.5k](/packages/illuminate-support)[spatie/holidays

Calculate public holidays

402860.1k2](/packages/spatie-holidays)[craftcms/feed-me

Import content from XML, RSS, CSV or JSON feeds into entries, categories, Craft Commerce products, and more.

293952.6k33](/packages/craftcms-feed-me)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54681.3k19](/packages/solspace-craft-freeform)[pimcore/data-importer

Adds a comprehensive import functionality to Pimcore Datahub

46855.5k5](/packages/pimcore-data-importer)[japanese-date/japanese-date

日本の暦、祝日を取り扱うライブラリ

1610.0k](/packages/japanese-date-japanese-date)

PHPackages © 2026

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