export to epub format in php

Lizard picture Lizard · Jul 23, 2010 · Viewed 12.7k times · Source

Does anyone know of a php class that can create/export ePub files?

I have a book stored in a mysql database and I wish to publish it as an ePub format book?

It's a very basic book, simple text and chapters, and a few images.

Any suggestions?

Answer

Sarfraz picture Sarfraz · Jul 26, 2010

You might want to have a look at ePubExport project or get an idea from its source code.

ePubExport is a Mediawiki extension for export wiki pages in epub format for offline reading in supported electronic readers or tablets.

Also have a look at award-winning class EPub

This class can be used to create create an ebook in EPUB format for Apple iPad and other ebook readers.

It can set the ebook details like the author, publisher, comments, etc., as well the ebook chapter data.

The class builds an archive with all the ebook information and serves the ebook archive for download or returns it as a string.

More Resources/Libraries: