Skip to content

Exports

Laravel DAV enables sabre/dav’s iCalendar and vCard export plugins.

Export a calendar collection by appending ?export to the calendar URL:

GET /dav/calendars/{owner}/{calendar}/?export

The response is a merged text/calendar download containing the calendar’s stored iCalendar objects.

Calendar exports accept sabre/dav’s query options:

OptionDescription
startUnix timestamp lower bound for exported events.
endUnix timestamp upper bound for exported events.
expandExpand recurring events. Requires start and end.
accept=jcalReturn jCal instead of iCalendar.
componentTypeFilter to a component type such as VEVENT or VTODO.

When start, end, or expand is used, sabre exports only VEVENT data for that filtered response.

Export an address book collection the same way:

GET /dav/addressbooks/{owner}/{addressBook}/?export

The response is a text/directory download containing the stored vCards.

Exports use the same HTTP Basic credentials and ACL checks as normal DAV reads. They are useful for backups, clients that can subscribe to .ics URLs but do not speak CalDAV, and one-off address book downloads.

Sabre references: iCalendar export and vCard export.