I keep the patches (the version of the text) in MySQL. Libo PHP use sebastianbergmann/diff
for patching text. I have a versions table, in her column of type TEXT, there are stored changes.
To display the current latest version of the text, its because you need to drive through Libu. But how for example to search for documents in MYSQL? How to glue these versions directly in MySQL? Or even there are other ways for diff Inga texts, without this libs? Or not bother and store all the text for each version? But the texts need large as for smart, I think?