richdocuments icon indicating copy to clipboard operation
richdocuments copied to clipboard

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

Open juliusknorr opened this issue 3 years ago • 2 comments

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

juliusknorr avatar Feb 14 '22 13:02 juliusknorr

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:

  • https://github.com/Champs-Libres/wopi-test-bundle
  • https://github.com/drupol/wopi-app/ -> This is the symfony app available here: https://wopi-app.herokuapp.com/

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 avatar Feb 15 '22 08:02 drupol

@juliushaertl Are you going to come to the hackathon ?

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

drupol avatar Apr 22 '22 10:04 drupol