nagi/laravel-wopi

Wopi implementation in php Laravel

Maintainers

Package info

github.com/nagi1/laravel-wopi

Homepage

pkg:composer/nagi/laravel-wopi

Transparency log

Fund package maintenance!

nagi1

Statistics

Installs: 76 732

Dependents: 0

Suggesters: 0

Stars: 23

Open Issues: 5

v1.3 2026-08-13 12:52 UTC

This package is auto-updated.

Last update: 2026-08-13 12:53:14 UTC


README

Logo

Implementation of the WOPI protocol to facilitate intergration with office online and other WOPI-compatible clients using Laravel.

๐Ÿ“ƒ Description

Web Application Open Platform Interface (WOPI) protocol let you integrate Office in your web application.

WOPI protocol enables Office for the web to access and change files that are stored in your service. Basically it allows you to create Google Docs at the confert of your localhost/application.

Supports:

๐Ÿ“• Documentation

You'll find the documentation on https://nagi1.github.io/laravel-wopi/docs.

Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving the wopi implementation? Feel free to create an issue on GitHub, we'll try to address it as soon as possible.

โšก Demo/Example

Demo app can be found at https://github.com/nagi1/wopi-host-example

๐Ÿงช Tested

This package has been tested using Wopi Validator.

๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡ testing

test Proof-validator vendor/bin/pest.

๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡

testing

To enable the Interactive WOPI Validation, adapt the WOPI configuration:

  • client_url: Ensure using Office 365
  • enable_interactive_wopi_validation: Set to true

Warning: This will mock any valid file to be the .wopitest file, and therefore will be destroyed when running tests.

โš  Important

Editor urls come from the discovery document of the client (/hosting/discovery), including the placeholder groups such as <wopisrc=WOPI_SOURCE&>. The document is cached, so clear it whenever the client gets upgraded, otherwise the browser is handed action urls that no longer exist:

php artisan wopi:clear-discovery

Credits

This project build upon and extends but not limited to Pol Dellaiera's Wopi-lib.

License

The MIT License (MIT). Please see License File for more information.