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
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GNU3
- 更新时间: 2014-07-16