承接 dagweb/php-public-holiday 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

dagweb/php-public-holiday

最新稳定版本:v1.2.0

Composer 安装命令:

composer require dagweb/php-public-holiday

包简介

Tool for calculate public holiday dates

README 文档

README

PHP-public-holiday is a PHP package that give you enums to retrieve public holidays dates.

Supported countries:

Country Enum Listed public holidays (Official Name used By Country)
France \Dagweb\PhpPublicHoliday\France\PublicHolidays - Jour de l'an
- Lundi de Pâques
- Fête du travail
- Victoire 1945
- Ascension
- Lundi de Pentecôte
- Fête Nationale
- Assomption
- Toussaint
- Armistice 1918
- Jour de Noël
Monaco \Dagweb\PhpPublicHoliday\Monaco\PublicHolidays - Jour de l'an
- Sainte Dévote
- Lundi de Pâques
- 1er Mai
- Ascension
- Lundi de Pentecôte
- La Fête Dieu
- Assomption
- Toussaint
- La Fête du Prince
- L'immaculée Conception
- Jour de Noël

Usage

Import Enum class and use it.

To get the spécific date, use the getDate(self $case, ?int $year = null): \DateTimeImmutable method of the Enum.

To get the list of all dates, use the getPublicHolidays(?int $year = null): array<string, \DateTimeImmutable> method of the Enum.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-only
  • 更新时间: 2025-08-18