mayflower/holiday 问题修复 & 功能扩展

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

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

mayflower/holiday

最新稳定版本:0.7.0

Composer 安装命令:

composer require mayflower/holiday

包简介

A library to calculate holidays

README 文档

README

Build Status

A library to calculate holidays.

Supported countries and states

  • America
  • Germany and all constituent states
  • Sweden
  • Netherlands

Installation

composer require mayflower/holiday

Usage

<?php

require_once __DIR__ . '/vendor/autoload.php';

$holidays = new Holiday\Germany();

// Returns array of Holiday objects, if any between the given dates.
$holidays->between(
     new \DateTime('01.01.2018'),
     new \DateTime('31.12.2018')
);

// isHoliday calls ->between with the given date to both parameters.
$holidays->isHoliday(new \DateTime('01.05.2018'))

统计信息

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

GitHub 信息

  • Stars: 29
  • Watchers: 50
  • Forks: 13
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2012-11-27