windrider7/sabre-share
Composer 安装命令:
composer require windrider7/sabre-share
包简介
Plugin for SabreDAV library
README 文档
README
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
##Requirements
This requires SabreDAV version 1.8 or later.
##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:
"musonic/sabre-share" : "dev-master"
After adding that, you can just run composer update to complete the installation.
##Setup
Update your server.php file (or whatever you have named it)
$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:
$calendarBackend->setCalendarSharesTableName('myTableName');
The table MUST have the following columns: "calendarId", "member", "status", "readonly", "summary", "displayName", "color"
Example sql:
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.
windrider7/sabre-share 适用场景与选型建议
windrider7/sabre-share 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 861 次下载、GitHub Stars 达 2, 最近一次更新时间为 2014 年 12 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「plugin」 「WebDAV」 「CalDAV」 「CardDAV」 「iCalendar」 「SabreDAV」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 windrider7/sabre-share 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 windrider7/sabre-share 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 windrider7/sabre-share 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
CakePHP 4.x AdminLTE Theme.
Webdav Adapter for Flysystem
Brainformatik CalDAV Framework
The flysystem extension for the Yii framework
A plugin for Roundcube to include CalDAVZap in to the main GUI
TYPO3 FAL storage driver for storing files using Webdav (RFC 4918)
统计信息
- 总下载量: 861
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-12-04