title | type | plugin_name | plugin_since |
---|---|---|---|
iCalendar Export Plugin |
plugin |
icsexportplugin |
1.4.0 |
There are some Calendaring tools that don't yet support CalDAV, but they do have support for the 'Subscribe to' feature.
Starting with SabreDAV 1.4, there is now a plugin that grabs an existing calendar, and exports it as a file that's compatible with these applications.
To use this plugin, simply add it to your server:
$icsPlugin = new \Sabre\CalDAV\ICSExportPlugin();
$server->addPlugin($icsPlugin);
After this is added, you can generate these exports by finding a url to your calendar, and adding ?export at the end of the url. This will automatically trigger a download.
Sample url
http://dav.example.org/calendars/user1/mycalendar?export
The ICSExport plugin supports several options since version 2.0.
option | description | example |
---|---|---|
start | Only show events from after this unix timestamp | start=1391707119 |
end | Only show events from before this unix timestamp | end=1391707215 |
expand | Automatically expand recurring events | expand=1 |
accept | Convert the iCalendar data to jCal | accept=jcal |
componentType | Filter by componentType, such as only VTODO . |
componentType=VTODO |
- If you want to use
expand
, you must specifystart
andend
. - Using
start
,end
orexpand
automatically filters outVTODO
andVJOURNAL
, because onlyVEVENT
is currently supported. If you need support forVJOURNAL
andVTODO
, open a feature request. componentType
was added in sabre/dav 3.0.
Sample url:
http://dav.example.org/calendars/user1/mycalendar?export&start=1391707119&end=1391707215&expand=1&accept=jcal