承接 skanto/calendarevents 相关项目开发

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

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

skanto/calendarevents

Composer 安装命令:

composer require skanto/calendarevents

包简介

Calendar Event Repository (Get Holiday Dates like Easter, Advent etc.)

README 文档

README

This is a very basic class that provides a list of christian holidays and calendar events from a given start date. The main purpose is to have a unified base for further calculations. The class is used to display or hide contents based on the event dates ("e.g. show this element 4 weeks before easter and hide it after easter monday is over.")

Usage

The Calendar Repository as of this writing only supports a getDates() function that will return all configured Events. More functions will follow when needed.

Example

use Skanto\CalendarEvents\CalendarEventRepository;
$relevancy = new CalendarEventRepository;
$dates = $relevancy
    ->setStartingDate('today')
    ->getDates();

header('content-type: text/plain');
var_dump($dates);

Testing

When contributing, please ensure you wrote a test case and the test case succeeds.

./phpunit --bootstrap src/CalendarEventRepository.php --testdox tests

Credits:

Thanks to http://www.die-seite.eu/ for sharing algorithms to calculate moon phases. Icon made by https://www.freepik.com/ from https://www.flaticon.com/ and is licensed by http://creativecommons.org/licenses/by/3.0/

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-12-14