brainformatik/caldav-framework
Composer 安装命令:
composer require brainformatik/caldav-framework
包简介
Brainformatik CalDAV Framework
关键字:
README 文档
README
PHP Framework for CalDAV
This framework abstracts all VCALENDAR entities. In addition it automatically adds required timezone information for dates. You can simply work with PHP DateTime and DateTimeZone objects.
After creating an event or a todo and setting all required values, you can create the vcalendar output or save the entry directly.
Installing via composer
First, download and install composer: Composer.
Next, run the composer command to install the latest stable version of the CalDAV framework:
composer require brainformatik/caldav-framework
Installing manually
First, download the latest version of CalDAV framework: CalDAV Framework.
Next, unzip and move this package in your application structure.
Last, use package autoloader to load the CalDAV framework classes:
<?php require_once 'caldav-framework/autoload.php';
Example usage
require_once('autoload.php'); try { $client = new \Brainformatik\CalDAV\Connection\Client([ 'baseUri' => 'http://some-url' // set caldav server url ]); $calendar = new \Brainformatik\CalDAV\Entity\Calendar($client, 'http://url-to-calendar'); $event = $calendar->addEvent(); $event->setUid('unique-id123415'); $event->setSummary('This is the summary'); $event->setDescription('This is the description which can be very long and should be folded at some point if the implementation is working correctly.'); $event->setComment('This is the comment you can use for something.'); $event->setLocation('Meeting room 1'); $event->setPriority(9); $event->addResources(['BEAMER', 'Flipchart']); $event->setStatus(\Brainformatik\CalDAV\Enum\EventStatus::CONFIRMED); $event->setDateEnd(new DateTime('2016-01-01 14:00:10', new DateTimeZone('America/New_York'))); $event->setDateStart(new DateTime('2015-12-12', new DateTimeZone('America/New_York'))); $event->setRecurrenceId(new DateTime('2015-12-12', new DateTimeZone('America/New_York')), [ 'RANGE' => 'THISANDFUTURE', 'VALUE' => 'DATE' ]); $duration = new \Brainformatik\CalDAV\Type\Duration(); $duration->setHour(10)->setMinute(30); $event->setDuration($duration); $event->setTransparency(\Brainformatik\CalDAV\Enum\EventTransparency::TRANSPARENT); $event->addExceptionDates([ new DateTime('2015-12-12 12:00:00', new DateTimeZone('America/New_York')), new DateTime('2015-12-13 12:00:00', new DateTimeZone('America/New_York')), new DateTime('2015-12-14 12:00:00', new DateTimeZone('Europe/Berlin')) ]); $event->setDateCreated(new DateTime('2016-10-08 09:32:00', new DateTimeZone('UTC'))); $event->setDateLastModified(new DateTime('2016-10-08 09:32:00', new DateTimeZone('UTC'))); // to get the icalendar output echo $calendar->serialize(); // to save the event to the calendar $calendar->save('filename.ics'); } catch (\Exception $e) { echo $e->getMessage(); }
brainformatik/caldav-framework 适用场景与选型建议
brainformatik/caldav-framework 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 23.33k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2018 年 07 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「CalDAV」 「crm」 「vtiger」 「brainformatik」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 brainformatik/caldav-framework 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 brainformatik/caldav-framework 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 brainformatik/caldav-framework 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PHP client for the Salesforce SOAP API
Vtiger Web Services PHP Client Library
Command-line utility for Vtiger CRM.
A plugin for Roundcube to include CalDAVZap in to the main GUI
Vtiger Web Services PHP Client Library - originally from salaros/vtwsclib-php
Library for Kommo (AmoCRM)
统计信息
- 总下载量: 23.33k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-07-20