SabreDAV
Open source CardDAV, CalDAV, and WebDAV framework and server.
Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Note: We were unable to fetch the official website sabre.io this time. The following content is based on established knowledge of the project. For specific version requirements and the latest developments, please refer to the official website and the GitHub repository.
Overview
SabreDAV is an open-source WebDAV server framework written in PHP. It fully implements the WebDAV protocol, along with the WebDAV-based CalDAV (calendar sync) and CardDAV (contact sync) extensions. It is not an out-of-the-box end-user product, but a library and framework that developers can use to build their own file, calendar and contact sync services. Well-known projects such as Nextcloud, ownCloud and Baïkal all use it to provide their DAV functionality.
Key Features
- WebDAV file service: Supports the standard WebDAV methods, including reading and writing files and directories, copying, moving, property management and locking (Locks).
- CalDAV calendar server: Stores and syncs calendars and to-dos, with support for scheduling (Scheduling) and calendar sharing.
- CardDAV contact server: Stores and syncs contacts (vCard).
- Access control (ACL): Manages users (principals) and permissions based on the WebDAV ACL specification.
- Plugin-based architecture: Extend functionality through plugins, for example authentication, a browser interface, sync collections (sync-collection) and more.
- Replaceable backends: Ships with PDO-based backends (usable with databases such as SQLite and MySQL), and you can also write custom backends to connect to existing data sources.
Related Components
The Sabre project also includes several PHP libraries that can be used on their own:
- sabre/vobject: Parses and generates iCalendar and vCard data
- sabre/xml: An XML reading and writing library
- sabre/http: An abstraction layer for HTTP requests and responses
- sabre/event: An events and async utility library
- sabre/uri: URI handling utilities
Target Users and Use Cases
- Developers who need to add calendar, contact or file sync functionality to their own PHP applications
- Individuals and teams who want to self-host CalDAV/CardDAV services as a replacement for Google Calendar or iCloud sync
- Businesses that need to expose existing data (databases, internal systems) via WebDAV
Core Strengths
- Complete protocol implementation, compatible with major clients such as Apple Calendar, Thunderbird and DAVx⁵
- Long-term use and proven reliability in large projects such as Nextcloud and ownCloud
- Modular architecture that is easy to extend and build on
- Released under the permissive BSD license, so it can be used in commercial projects
Installation and Deployment
Installing via Composer is recommended:
composer require sabre/dav
After installation, write an entry PHP file, create a Sabre\DAV\Server instance, and mount the node tree and plugins you need (for example authentication, CalDAV, CardDAV and the browser plugin). Then point your web server's (Apache, Nginx, etc.) requests to this entry file. The official documentation provides example configurations for a WebDAV file server, a CalDAV server and a CardDAV server.
Technical Requirements
- A PHP runtime environment (see the official documentation for specific version requirements)
- Composer
- A database, such as SQLite or MySQL, when using the PDO backend
- A web server, such as Apache or Nginx
Things to Note
- It is a framework, not a finished product with a full administration interface. If you just want a ready-made service, consider Baïkal, which is built on top of it.
- The built-in browser plugin provides a simple web interface, which is handy for debugging and browsing DAV resources.
Discover more
Davis
A simple, dockerizable and fully translatable admin interface for sabre/dav based on Symfony 5 and Bootstrap 4, largely inspired by Baïkal.
Baïkal
Lightweight CalDAV and CardDAV server based on sabre/dav.
Cal.diy
Scheduling infrastructure for absolutely everyone.
DAViCal
Server for calendar sharing (CalDAV) that uses a PostgreSQL database as a data store.
Aimeos
E-commerce framework for building custom online shops, market places and complex B2B applications scaling to billions of items with Laravel.
AnonAddy
Email forwarding service for creating aliases.