Skip to content

nchizhov/ru-calendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Inok - Russian Productivity Calendar

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