These tutorials will show you how to use php-odt. It is better to read them in the order they're listed.