定制 dwuty/calendar 二次开发

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

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

dwuty/calendar

最新稳定版本:v1.0.0

Composer 安装命令:

composer require dwuty/calendar

包简介

offers an easy way to show calendar dates on your website.

关键字:

README 文档

README

Packagist Version Packagist Downloads GitHub License Packagist PHP Version Support

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固