inok/ru-calendar

俄语生产力日历

1.0.0 2021-03-08 07:45 UTC

This package is auto-updated.

Last update: 2024-09-08 15:59:17 UTC


README

License License License Scrutinizer Code Quality

此包提供俄语生产力日历。源日历来自 www.consultant.ru

安装

您可以通过运行此命令使用 Composer 安装此包:

composer require inok/ru-calendar

Packagist 链接:https://packagist.org.cn/packages/inok/ru-calendar

##使用方法

$calendar = new Inok\ruCalendar\Calendar($year, $cacheDays);
$calendarInfo = $calendar->getCalendar();

其中

  • $year - 日历请求的年份(默认:当前年份,最小年份:2013)
  • $cacheDays - 下载的 html 日历的缓存天数(默认:7)

$calendarInfo 返回月份数组

  • month - 俄语中月份的名称
  • preholidays - 预假日的数组
  • holidays - 假日的数组
  • weekends - 周末的数组
  • noworkdays - 非工作日的数组

许可协议

此包根据 MIT 许可协议 发布。

版权 (c) 2021 Chizhov Nikolay