定制 theantichris/icalendar-creator 二次开发

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

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

theantichris/icalendar-creator

最新稳定版本:v1.0.1

Composer 安装命令:

composer require theantichris/icalendar-creator

包简介

Create iCalendar files.

README 文档

README

Creates iCalendar (.ics) files.

Getting Started

Include the package in your composer.json file.

"require": {
        "theantichris/icalendar-creator": "v1.0.0"
},

Classes

Location

Stores and formats the output for the location part of the ICS file.

The constructor accepts name, address line 1, address line 2, city, state, and postal code as strings. Only name is required.

new Location($name, $address1, $address2, $city, $state, $postalCode);

iCalendar

Stores and outputs the needed information for the ICS file.

The constructor accepts event name (string), event start (DateTime), event end (DateTime), event description (string), location (Location), organizer name (string), and organizer email (string). Only event name, event start, and event end are required.

new iCalendar($eventName, $eventStart, $eventEnd, $eventDescription, $eventLocation, $organizerName, $organizerEmail);

iCalendarCreator

This class has two static method for creating and viewing an ICS file.

createIcsFile

This method generates an ICS file based on the iCalendar object passed in.

iCalendarCreator::createIcsFile($iCalendar);

viewIcsFile

This method echoes the content of the ICS file.

iCalendarCreator::viewIcsFile($iCalendar);

统计信息

  • 总下载量: 8.85k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: GNU3
  • 更新时间: 2014-07-16