用 PHP 构建 CalDAV 服务器?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2378418/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Building a CalDAV-server in PHP?
提问by Sandman
Ok, so I'm the author of a CMS and I'm interested in building a CalDAV-server that enables the user to interface with my CMS through CalDAV instead of only through the web, so they can see their calendars, add todos and things like that.
好的,所以我是 CMS 的作者,我有兴趣构建一个 CalDAV 服务器,使用户能够通过 CalDAV 而不是仅通过网络与我的 CMS 进行交互,这样他们就可以查看他们的日历、添加待办事项和像这样的东西。
I've looked at http://www.davical.org/which is a CalDAV service built in PHP, but it has its own database and I already have the DB stuff done and just want a middle-layer services that translates, both ways, to and from my databases using my functions.
我看过http://www.davical.org/,这是一个用 PHP 构建的 CalDAV 服务,但它有自己的数据库,我已经完成了数据库的工作,只想要一个中间层服务来翻译,两者都是方法,使用我的函数进出我的数据库。
Any ideas?
有任何想法吗?
回答by Sudhir Bastakoti
SabreDAV http://sabre.io/dav/caldav/can be of some help.
SabreDAV http://sabre.io/dav/caldav/可以提供一些帮助。
回答by Jér?me Schneider
You should definitely have a look at Ba?kal. It's a lightweight caldav and carddav server distribution based on SabreDAV and SQLite3.
你绝对应该看看巴卡尔。它是一个基于 SabreDAV 和 SQLite3 的轻量级 caldav 和 carddav 服务器发行版。
回答by karora
DAViCal also has hooks that you can use to synchronise with your own table structure, in particular it has this hook which is called whenever a change occurs within a calendar:
DAViCal 还具有可用于与您自己的表结构同步的钩子,特别是它具有此钩子,只要日历中发生更改,就会调用该钩子:
http://wiki.davical.org/w/Configuration/hooks/log_caldav_action
http://wiki.davical.org/w/Configuration/hooks/log_caldav_action
回答by mutter erde
Use Wireshark to discover protocoll (much XML).
使用 Wireshark 发现协议(很多 XML)。
It's easy if you want to deliver only simple iCal-Files. For "View only" an iCal file is enough, no CalDav needed, but for adding ToDos etc. CalDav is necessary.
如果您只想提供简单的 iCal 文件,这很容易。对于“仅查看”一个 iCal 文件就足够了,不需要 CalDav,但是对于添加待办事项等,CalDav 是必要的。

