cti/ics
最新稳定版本:0.4
Composer 安装命令:
composer require cti/ics
包简介
ics management
关键字:
README 文档
README
Aim of current library is to allow easy manipulation of .ics files.
Install
Using Composer
Add
"cti/ics": "0.1"
to the "require" section of your composer.json file.
Usage
Named calendar, with timezone, and two events
// initialise calendar $calendar = new Calendar('Automated Test', 'Europe/London'); // add events to it $calendar->add(new Event\Interval('2015-03-13 10:05:00', '2015-03-13 10:19:59', 'Daily scrum')); $calendar->add(new Event\Interval('2015-03-13 10:30:00', '2015-03-13 10:49:59', 'Weekly project review'));
Saving to file
$path = '/tmp/generated.ics'; $generator = new Generator(new FileOutput($path)); $generator->calendar($calendar)->getOutput()->getAll();
Output to string
// grab the output in a string for later usage $generator = new Generator(new StringOutput()); $output = $generator->calendar($calendar)->getOutput()->getAll();
统计信息
- 总下载量: 28
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-03-12