承接 hostnet/bank-holiday-component 相关项目开发

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

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

hostnet/bank-holiday-component

最新稳定版本:1.1.3

Composer 安装命令:

composer require hostnet/bank-holiday-component

包简介

Component that provides bank holidays and business day dates

README 文档

README

This component provides bank holidays and business day dates. The component is created to make it easy to calculate holidays in an extendable way.

Currently, this component only contains the Dutch holidays, but pull requests for other (country's) bank holidays are welcome.

Installation

Installation of the bundle can be done via composer and is the recommended way of adding the bundle to your application. To do so, execute the following command to download the latest stable version of this bundle:

composer require hostnet/bank-holiday-component

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

This bundle and the component follow semantic versioning strictly.

Usage

<?php require_once('vendor/autoload.php'); $bank_holiday_resolver = new \Hostnet\Component\BankHoliday\BankHolidayResolver(\Hostnet\Component\BankHoliday\BankHoliday::DUTCH_BANK_HOLIDAY_SET); $business_day_resolver = new \Hostnet\Component\BankHoliday\BusinessDayResolver($bank_holiday_resolver); $business_day_resolver->isBusinessDay(new \DateTime('2017-04-17')); // false foreach ($bank_holiday_resolver->getByDate(new \DateTime('2017-04-17')) as $bank_holiday) { print $bank_holiday . "\n"; // easter_monday }

Requirements

PHP 7.3.x or above.

License

This library is licensed under the MIT License, meaning you can reuse the code within proprietary software provided that all copies of the licensed software include a copy of the MIT License terms and the copyright notice.

For more information, see the LICENSE file.

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固