nojimage/holiday-jp 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nojimage/holiday-jp

最新稳定版本:v1.2.1

Composer 安装命令:

composer require nojimage/holiday-jp

包简介

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

README 文档

README

License Packagist Version (custom server) Build Status

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

Requirements

  • PHP 8.2 or above

Installation

composer require nojimage/holiday-jp

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

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

License

This project is released under the MIT License.

统计信息

  • 总下载量: 1.09k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固