rock-ms/wopi
Composer 安装命令:
composer require rock-ms/wopi
包简介
README 文档
README
Minimum PHP version: 8.0
Installation
composer require rock-ms/wopi
Publish Migrations
php artisan vendor:publish --tag=wopi-migrations
Publish Model
php artisan vendor:publish --tag=wopi-file-model
Publish Configuration
php artisan vendor:publish --tag=wopi-config
Publish Document Manager
php artisan vendor:publish --tag=wopi-document-manager
Usage Overview
Goto config/wopi.php and change document_manager to newly publish document manager class
WOPI UI component for wopi preview
<x-wopi-frame id="pass file id here" />
Documentation
-
https://learn.microsoft.com/en-us/microsoft-365/cloud-storage-partner-program/online/
-
There is a community for wopi called Yammer(https://techcommunity.microsoft.com/t5/yammer/ct-p/Yammer)
Test Cases
- Create empty file by extension .wopitest
- Add it in files table
- Pass file id to wopi ui component
Important
- WOPI does not work on your local instance because your local environment is not registered on Microsoft
- WOPI only works on domains registered with Microsoft
How to apply for WOPI
统计信息
- 总下载量: 18.68k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-05-30