Skip to content
lukashronPublic

About

PHP extend for Czech calendar.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

Repository files navigation

PHP extend for Czech calendar.

alt text

Installation

composer require lukashron/calendar

Example

$myCalendar = new \LukasHron\Calendar\CalendarManager();

$myCalendar->addCalendar(new \LukasHron\Calendar\Country\Czech\Holidays());
$myCalendar->addCalendar(new \LukasHron\Calendar\Country\Czech\Namedays());
$myCalendar->addCalendar(new \LukasHron\Calendar\Country\Czech\Internationaldays());

dump($myCalendar->getYear());
dump($myCalendar->getLabels());
dump($myCalendar->getFullCalendar());
dump($myCalendar->findByDate('1.1.2022'));

Calendar manager method

Setting calendar year setYear(int $year): void

Get calendar year getYear(): int

Add calendar - instance of CalendarInterface addCalendar(CalendarInterface $calendar): void

Get full calendar array getFullCalendar(): array

Get all labels in calendar getLabels(): array

Find by number month and day findByMonthAndDayNumber(int $month, int $day)

Find by number month and day, return simple array findByMonthAndDayNumberSimpleArray(int $month, int $day): array

Get rand event findRandomEvent(?string $calendarLabel = null)

Find day by date findByDate($date)

Implemented calendars

[CZECH]

  • Holidays
  • Name days
  • International days

www.lukashron.cz

About

PHP extend for Czech calendar.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages