inok / ru-calendar
Russian Productivity Calendar
1.0.0
2021-03-08 07:45 UTC
Requires
- php: >=7.0 || ~8.0.0
- ext-dom: *
- ext-libxml: *
- appzz/curl-client: 3.*
This package is auto-updated.
Last update: 2024-10-08 16:10:42 UTC
README
This package offers a russian productivity calendar. Source calendar takes from www.consultant.ru.
Installation
You can install this package by using Composer, running this command:
composer require inok/ru-calendar
Link to Packagist: https://packagist.org/packages/inok/ru-calendar
##Usage
$calendar = new Inok\ruCalendar\Calendar($year, $cacheDays); $calendarInfo = $calendar->getCalendar();
where:
- $year - Requested year of calendar (default: current year, min year: 2013)
- $cacheDays - Cache days for downloaded html-calendar (default: 7)
$calendarInfo returns array of months:
- month - Name of month in russian language
- preholidays - Array of preholiday days
- holidays - Array of holiday days
- weekends - Array of weekend days
- noworkdays - Array of no work days
License
This package is released under the MIT license.
Copyright (c) 2021 Chizhov Nikolay