定制 jfcherng-roundcube/cloudview 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jfcherng-roundcube/cloudview

Composer 安装命令:

composer require jfcherng-roundcube/cloudview

包简介

A Roundcube plugin which lets you view documents with cloud viewer.

README 文档

README

GitHub Actions GitHub Actions Packagist Packagist Version Project license GitHub stars Donate to this project using Paypal

A Roundcube plugin which lets you directly view mail attachments in the browser with cloud viewers like Google Docs or Microsoft Office Web.

cover

Click me to see the user settings page

Viewers & Supported Formats

3rd-party Viewers

Viewer Supported Formats
Google Docs doc, docx, xls, xlsx, ppt, pptx, rtf
Microsoft Office Web doc, docx, xls, xlsx, ppt, pptx, odt, ott, ods, ots, odp, otp
StackEdit md

Self-hosting Viewers

Viewer Supported Formats
HTML JS htm, html
Markdown JS md
PDF JS pdf
PSD JS psd

Requirements

This plugin is tested in the following environment.

  • Roundcube: 1.4.0, 1.6.0
  • PHP: 7.1.3 (min requirement), 8.1
  • Skin: Classic, Larry, Elastic

Different environments may work as well without guarantee.

How to install this plugin in Roundcube

Install via Composer (Recommended)

This plugin has been published on Packagist by the name of jfcherng-roundcube/cloudview.

  1. Go to your ROUNDCUBE_HOME (i.e., the root directory of your Roundcube).
  2. Run composer require jfcherng-roundcube/cloudview.
  3. Copy config.inc.php.dist to config.inc.php and edit config.inc.php if you want.

Install manually

  1. Create folder cloudview in ROUNDCUBE_HOME/plugins if it does not exist.
  2. Copy all plugin files there.
  3. Copy config.inc.php.dist to config.inc.php and edit config.inc.php if you want.
  4. Edit ROUNDCUBE_HOME/conf/config.inc.php locate $config['plugins'] and add 'cloudview', there:
<?php

// some other codes...

$config['plugins'] = array(
    // some other plugins...
    'cloudview', // <-- add this
);

Prerequisites

This plugin will extract attachments from messages into plugins/cloudview/temp/ so that remote cloud viewers can publicly access them.

  • The temp/ directory under plugins/cloudview/temp/ should be public accessible.
  • Make sure the user running the RoundCube server has "write" permission to the temp/ directory.
  • Your RoundCube installation should be publicly accessible. I.e., not under an internal server.

Temporary Files

Those temporary files under plugins/cloudview/temp/ will not be deleted automatically. You will need to setup a cron job to periodically delete them.

For example, execute crontab -e and add the following job

# delete temporary files on 03:00 AM every day
0 3 * * * rm -rf PATH_TO_ROUNDCUBE/plugins/cloudview/temp/*/

For Developers

Compile Frontend Assets

  • You will need to have Node.js installed.
  • Install dependencies via npm install (or yarn if you prefer)
  • Compile assets with ./compile.sh

Acknowledgement

jfcherng-roundcube/cloudview 适用场景与选型建议

jfcherng-roundcube/cloudview 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.2k 次下载、GitHub Stars 达 10, 最近一次更新时间为 2020 年 04 月 23 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 jfcherng-roundcube/cloudview 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 jfcherng-roundcube/cloudview 我们能提供哪些服务?
定制开发 / 二次开发

基于 jfcherng-roundcube/cloudview 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 1.2k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 13
  • 点击次数: 14
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 2
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-04-23