composer require lukashron/calendar
$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'));
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)
[CZECH]
- Holidays
- Name days
- International days