Wrapping ophir in a class and giving it a namespace would fit more modern workflows.
I am bringing this up as a ticket, because it will change how Ophir works. The code in the readme would then look something like this:
use \lovasoa\Ophir
$ophir = new Ophir();
$ophir->setFootnote(0);
$ophir->setAnnotation(0);
$ophir->setList(1);
$ophir->setLink(1);
echo $ophir->odt2html("/path/to/file.odt");
This would make handling Ophir a lot easier, since it is a object and not a loose Bunch of functions. It is a rather big step to take but i think it is worth it (plus you get super cool Autoloading by Composer)
In my mind it only brings advantages (let alone breaking things, that rely on the old version)
Wrapping ophir in a class and giving it a namespace would fit more modern workflows.
I am bringing this up as a ticket, because it will change how Ophir works. The code in the readme would then look something like this:
This would make handling Ophir a lot easier, since it is a object and not a loose Bunch of functions. It is a rather big step to take but i think it is worth it (plus you get super cool Autoloading by Composer)
In my mind it only brings advantages (let alone breaking things, that rely on the old version)