nextcloud / richdocuments

📑 Collabora Online for Nextcloud
https://nextcloud.com/collaboraonline
353 stars 116 forks source link

Refactor WOPI handling using PHP abstraction library champs-libres/wopi-lib #2047

Open juliusknorr opened 2 years ago

juliusknorr commented 2 years ago

Last year @drupol presented his work on a shared wopi library for PHP in the Collabora community calls. We should look into how we can possibly make use of that abstraction in order to simplify the WOPI handling in our code base https://github.com/champs-libres/wopi-lib

For integration some inspiration on the usage could also be taken from https://github.com/Champs-Libres/wopi-bundle

drupol commented 2 years ago

Hi!

champs-libres/wopi-lib is indeed an abstracted library providing base elements for using the WOPI protocol, you will find the details in the README of the project.

If you're looking for more concrete implementations, find them in here:

I understand that all of this can be a bit complex, but basically my goal here was to abstract away the complexity of the WOPI protocol and all its endpoints so it can be implemented using a simple interface (WopiInterface), find an example here.

Let me know if you need more information, I'm ready to help and push this further.

drupol commented 2 years ago

@juliushaertl Are you going to come to the hackathon ?

On my side I'll be there, as I work at European Commission !