定制 itzamna/ics 二次开发

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

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

itzamna/ics

最新稳定版本:5.1.1

Composer 安装命令:

composer require itzamna/ics

包简介

Calender file wrapper

README 文档

README

Itzamna ICS is a tool intended to be able to easily generate an ICS file.

Concepts

Events

Itzamna includes an event object, but you can use any event that implements the included EventInterface to set and get related fields.

Fields

TODO: Definitions

Field Description
Organizer TODO
Uid TODO
Timezone* Event time zone
Start Date* Event start date
End Date* Event end date
Summary Short summary
Location Location string
Description Full event description
Categories TODO

*: Note that all date/time fields use Carbon and will accept any valid value that carbon will for those fields.

Ics Object

The ICS object allows you to set a prodid and add any number of Events.

Usage

$ics = new Itzamna\Ics();
$event = new Itzamna\Event();

$ics->setICSProdid('prodid');

$event->setICSOrganizer('organizer@mail.com');
$event->setICSUid('19');
$event->setICSTimezone(-7);
$event->setICSStartDate('-5 days');
$event->setICSEndDate('+1 days');
$event->setICSSummary('Test');
$event->setICSLocation('Here');
$event->setICSDescription('A test event');
$event->setICSCategories('Tests');

$ics->addEvent($event);

echo $ics;

External Resources

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-09-08