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
We use Weblate for collaborative translations! You can help translate this project into different languages by joining our Weblate project.
- Sign up or log in on Weblate
- Go to our project page: Weblate Project
- Pick a language and start translating!
- Your translations will be reviewed and merged automatically
Thank you for helping make this project accessible to more people!
Feel free to submit new Renderers or Recipes
This library is released under the GPL-3.0-or-later licence.