ProseMirror, collaborative editing and PHP


What’s the way to create the collaborative editing with using PHP?

As far as I understand, on the server we need to use the JS module “prosemirror-transform” to be able to work with the document, add transactions to it, it’s responsible for preventing collisions, etc.

What is the easiest way to do this with PHP? Rewrite the “prosemirror-transform” module? Implement the algorithm of this library? Use node.js?

It appears someone has already done that. Correction: that isn’t what I thought it was.

There exist ports of the prosemirror doc/schema/transform logic to other languages, but I wasn’t able to find one in PHP. So running a node process is probably the best approach.