jfcherng-roundcube/cloudview
Composer 安装命令:
composer require jfcherng-roundcube/cloudview
包简介
A Roundcube plugin which lets you view documents with cloud viewer.
README 文档
README
A Roundcube plugin which lets you directly view mail attachments in the browser with cloud viewers like Google Docs or Microsoft Office Web.
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 | |
| 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.
- Go to your
ROUNDCUBE_HOME(i.e., the root directory of your Roundcube). - Run
composer require jfcherng-roundcube/cloudview. - Copy
config.inc.php.disttoconfig.inc.phpand editconfig.inc.phpif you want.
Install manually
- Create folder
cloudviewinROUNDCUBE_HOME/pluginsif it does not exist. - Copy all plugin files there.
- Copy
config.inc.php.disttoconfig.inc.phpand editconfig.inc.phpif you want. - Edit
ROUNDCUBE_HOME/conf/config.inc.phplocate$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 underplugins/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(oryarnif you prefer) - Compile assets with
./compile.sh
Acknowledgement
- The basic idea comes from https://github.com/brestows/cloudview-roundcube
- This plugin is initially sponsored by @Galandrix.
jfcherng-roundcube/cloudview 适用场景与选型建议
jfcherng-roundcube/cloudview 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.2k 次下载、GitHub Stars 达 10, 最近一次更新时间为 2020 年 04 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 jfcherng-roundcube/cloudview 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jfcherng-roundcube/cloudview 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1.2k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-23

