rock-ms/wopi

dev-master 2023-12-18 16:03 UTC

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

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