inok/ru-calendar

Russian Productivity Calendar

1.0.0 2021-03-08 07:45 UTC

This package is auto-updated.

Last update: 2024-12-08 16:30:32 UTC


README

License License License Scrutinizer Code Quality

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