Create EPUB file by php . simple to use, you should only commit your book data and chapter data. Here is a complete demo in demo.php