定制 axi/mycalendar 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

axi/mycalendar

最新稳定版本:2.3.0

Composer 安装命令:

composer require axi/mycalendar

包简介

Calculate several special dates relative to a birthdate (or any date)

README 文档

README

Translate on Weblate Translate on Weblate

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).

Installation

You can install this package by using Composer, running the following command:

composer require axi/mycalendar

Usage

Basic usage

<?php

use Axi\MyCalendar\Service\CalendarService;

require_once './vendor/autoload.php';

echo (new CalendarService())
    ->getEventsFromDate(
        dateTime: new DateTime("1984-01-12"),
        format: 'json'
    )->getContent();

Available formats

  • json
  • ical (require "eluceo/ical")
  • none (Internal Event object)

Available recipes

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

Translations

We use Weblate for collaborative translations! You can help translate this project into different languages by joining our Weblate project.

How to Contribute:

  1. Sign up or log in on Weblate
  2. Go to our project page: Weblate Project
  3. Pick a language and start translating!
  4. Your translations will be reviewed and merged automatically

Thank you for helping make this project accessible to more people!

Contributing

Feel free to submit new Renderers or Recipes

Licence

This library is released under the GPL-3.0-or-later licence.

统计信息

  • 总下载量: 31
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2024-10-31