rock-ms / wopi
Installs: 14 619
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 1
Requires
- php: ^8.0
- guzzlehttp/guzzle: ^7.4
- illuminate/contracts: ^9.14|^8.37
- phpseclib/phpseclib: ^2
- spatie/laravel-package-tools: ^1.4.3
This package is auto-updated.
Last update: 2025-02-15 18:07:28 UTC
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