2017 © Pedro Peláez
 

library sabre-share

Plugin for SabreDAV library

image

windrider7/sabre-share

Plugin for SabreDAV library

  • Thursday, December 11, 2014
  • by Elbard
  • Repository
  • 2 Watchers
  • 1 Stars
  • 126 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

#sabre-share

Plugin for for SabreDAV a WebDAV framework for PHP. This plugin implements calendar sharing as outlined here https://trac.calendarserver.org/browser/CalendarServer/trunk/doc/Extensions/caldav-sharing.txt, (*1)

##Requirements

This requires SabreDAV version 1.8 or later., (*2)

##Installation

To install this plugin, make sure you have SabreDAV installed using the composer installation instructions. To add this plugin, just add the following line to your composer file in the requires section:, (*3)

"musonic/sabre-share" : "dev-master"

After adding that, you can just run composer update to complete the installation., (*4)

##Setup

Update your server.php file (or whatever you have named it), (*5)

$calendarBackend = new \SabreShare\CalDAV\Backend\SabreSharePDO($pdo);
$calDavSharingPlugin = new \Sabre\CalDAV\SharingPlugin();
$server->addPlugin($calDavSharingPlugin);  

You must also create a table in your database to store the shares. The default table name is "calendarShares" but this can be manually set by adding the following line to your server.php file:, (*6)

$calendarBackend->setCalendarSharesTableName('myTableName');

The table MUST have the following columns: "calendarId", "member", "status", "readonly", "summary", "displayName", "color", (*7)

Example sql:, (*8)

CREATE TABLE `calendarShares` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `calendarId` int(11) NOT NULL,
  `member` int(11) NOT NULL,
  `status` int(1) NOT NULL,
  `readonly` tinyint(1) NOT NULL DEFAULT '0',
  `summary` varchar(150) DEFAULT NULL,
  `displayName` varchar(100) DEFAULT NULL,
  `color` varchar(10) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;

##Usage

Please note that this plugin does not come with a GUI. If you have set it up correctly you should now be able to share calendars with other users identified by their registered email address. Please also note that there is not as yet any support for the notifications that usually go along with calendar sharing. This is currently being implemented and an update will be available in due course., (*9)

The Versions

11/12 2014

dev-master

9999999-dev https://github.com/musonic/sabre-share

Plugin for SabreDAV library

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.1
  • ext-dom *
  • ext-pcre *
  • ext-spl *
  • ext-simplexml *
  • ext-mbstring *
  • ext-ctype *
  • ext-date *
  • ext-iconv *
  • ext-libxml *
  • sabre/dav *

 

The Development Requires

by Nic Le Breuilly

plugin caldav webdav sabredav icalendar carddav