views:

174

answers:

3

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?

A: 

I found this URL on the web, but I didn't test it...

Giovanni Di Milia
A: 

From the above mentioned Wikipedia page:

http://sourceforge.net/projects/epubexport/

Didn't test it either. It's specifically for MediaWiki, but you could perhaps use it as starting point.

Boldewyn
+2  A: 

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:

Sarfraz