This library allows you to get information about special dates based on one person's birthday (or any date).
It's been know to be the best tool to wish a happy 15000th day to people (no it's not).
You can install this package by using Composer, running the following command:
composer require axi/mycalendar
<?php
use Axi\MyCalendar\Service\CalendarService;
require_once './vendor/autoload.php';
echo (new CalendarService())
->getEventsFromDate(
dateTime: new DateTime("1984-01-12"),
format: 'json'
)->getContent();
- json
- ical (require "eluceo/ical")
- none (Internal Event object)
Several recipes are already available
- AverageAgeFirstChildren: Women's mean age at 1st childbirth in 2022 in the OECD
- Now: Special recipe to dispaly the current day within the date list
- PlanetsRevolutions: list the dates where planets (other than earth) have made one or several revolutions
- SleepTime: Estimated average sleep total time in years
- ThousandsDays: Fancy dates where people reach multiple of thousand days
See Issues for a list of propositions for more recipes
Feel free to submit new translations
Feel free to submit new Renderers or Recipes
This library is released under the GPL-3.0-or-later licence.