OdtPHP is a PHP library designed to use OpenDocument file as a template for PHP. It's a kind of PHPLib for OpenOffice document.
This is an unofficial updated fork from the official odtphp project.
This project aims to bring some community updates (including my own) that will never make it into the official project since it is now abandoned.
This project is currently used in real applications, such as Dolibarr. As thus, the project is pretty much stable and used by hundreds of users.
You only need to copy all the files inside the 'library' folder, and then include 'odf.php'.
From there, simply instanciate the Odf class, and then use the methods (commented in the sourcecode).
[TODO: More details on usage should be added here]
The original website of odtphp, now gone: http://www.odtphp.com/
The latest official release of odtphp v1.0.1 is still available on the official sourceforge repository: http://sourceforge.net/projects/odtphp/
Thank's to all the contributors that made some of the interesting changes that you will find in this fork.
For reference, you can find some of those changes in this blog post:
http://vikasmahajan.wordpress.com/2010/12/09/odtphp-bug-solved/
And also in the Dolibarr project.
Warm thank's to Aurélien Bompard for his xhtml2odt project (xhtml2odt.org).