百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
I

iCal

> 编程语言
开源

适用于 PHP 的 iCal 创建器

1.2K stars0 点赞2 次浏览
访问官网GitHub

工具介绍

适用于 PHP 的 iCal 创建器

eluceo — iCal 2 此包提供了一个抽象层,用于创建 iCalendars 文件。通过使用此 PHP 包,您可以在不了解底层格式的情况下创建 *.ics 文件。输出本身将尽可能遵循 RFC 5545。

初始版本发布于 2012 年。此包的第 2 版是对该包的全面重写,不兼容旧版本。如果您想从版本 0.* 迁移到 2.*,请参阅升级指南。如果您刚刚开始使用此包,请安装第 2 版。


### Full example

The following example will create a single day event with a summary and a description.
More examples can be found in the [examples/](examples) folder.

php setSummary('圣诞前夜') ->setDescription('Lorem Ipsum Dolor ...') ->setOccurrence( 新的 Eluceo\iCal\Domain\ValueObject\SingleDay( 新的 Eluceo\iCal\Domain\ValueObject\Date( \DateTimeImmutable::createFromFormat('Y-m-d', '2030-12-24') ) ) ); // 2. 创建日历域实体 $calendar = new Eluceo\iCal\Domain\Entity\Calendar([$event]); // 3. 将域实体转换为 iCalendar 组件 $comp

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHPcalendarcomposerhacktoberfestical

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言