dwuty/calendar
最新稳定版本:v1.0.0
Composer 安装命令:
composer require dwuty/calendar
包简介
offers an easy way to show calendar dates on your website.
关键字:
README 文档
README
dwuty/calendar provides a simple and easy way to generate a multi-language (i18n) calendar with item(s) on your website.
Installation
index.php
<?php require_once __DIR__ . '/vendor/autoload.php'; use dwuty\calendar\calendar; echo '<link href="/vendor/dwuty/calendar/dist/css/calendar.min.css" rel="stylesheet" type="text/css">'; $date = date_create(date('Y-m-d')); $aryDates = [ date_format($date, 'Y-m-d') => [ [ 'EVENT_TITLE' => 'Event 4', 'TIME_FROM' => '08:00:00', 'TIME_TO' => '13:00:00', 'DETAILS' => 'lorem ipsun dolar sit genda tersd dsad' ], [ 'EVENT_TITLE' => 'Event 5', 'TIME_FROM' => '15:00:00', 'TIME_TO' => '21:00:00', 'DETAILS' => 'lorem ipsun dolar sit genda tersd dsad' ] ], date_format(date_sub($date, date_interval_create_from_date_string('2 days')), 'Y-m-d') => [ [ 'EVENT_TITLE' => 'Event 2', 'TIME_FROM' => '02:00:00', 'TIME_TO' => '05:00:00', 'DETAILS' => 'lorem ipsun dolar sit genda tersd dsad' ], [ 'EVENT_TITLE' => 'Event 3', 'TIME_FROM' => '18:00:00', 'TIME_TO' => '23:59:00', 'DETAILS' => 'lorem ipsun dolar sit genda tersd dsad' ] ], date_format(date_sub($date, date_interval_create_from_date_string('10 days')), 'Y-m-d') => [ [ 'EVENT_TITLE' => 'Event 1', 'TIME_FROM' => '02:00:00', 'TIME_TO' => '05:00:00', 'DETAILS' => 'lorem ipsun dolar sit genda tersd dsad' ] ] ]; calendar::createCalendar('en-EN', $aryDates); // calendar::createCalendar('de-DE', $aryDates); echo '<script src="/vendor/dwuty/calendar/src/calendar.js"></script>';
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-24