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.
PHP 5.2 seems to work. 5.3 with GD extensions are recommended
Drupal 7 project print
Looking for ePub package
April 2010
Number 9
Prize: One copy of Delphi for PHP |
The release of the iPad raised the public interest for ebooks again.
EPub is a ebook format that is supported by the iPad.
This class provides a pure PHP solution to build ebooks in the EPub format.
Manuel Lemos |
|
Packages needed by this class |
|
Class |
Download | Why it is needed |
Dependency |
Zip |
.zip .tar.gz |
ePub's are Zip archives, this class is needed to generate those. Zip is a small, easy to use Zip archive creator. |
Required |
|
Pages that reference this package |
|
Latest pages that reference packages
|
Applications that use this package |
|
If you know an application of this package, send a message to the author to add a link here.
|
Files |
|
File |
Role |
Description |
demo (7 files) |
EPub.php |
Class |
Main class, 2.5x is backwards compatible with EPub 1.0, except for the createUUID function. |
EPubChapterSplitter.php |
Class |
HTML Splitter, can be used without EPub. It splits an (X)HTML file into an array of parts, splitting at either a set max size or at a search string (both regexp or plain text supported), while retaining the HTML structure across the split point. When using a search string, the matching HTML entity/line is returned as the parts' array key. |
EPub.NCX.php |
Class |
Structure holding NCX data |
EPub.OPF.php |
Class |
Structure holding OPF data |
EPub.HtmlEntities.php |
Class |
Utility class |
Zip.php |
Class |
Zip.php from my Zip class, added for convenience |
lib.uuid.php |
Class |
J. King's DrUUID class for UUID generation, required by EPub |
EPub.Example1.php |
Example |
Example file for generating book for download. |
EPub.Example2.php |
Example |
Example file for showing nested chapter levels. |
EPub.Example3.php |
Example |
Example script showing generation of an ePub 3 book |
EPub.ExampleSimple.php |
Example |
Example script showing the most basic steps needed to create a simple book |
EPub.ExampleImg.php |
Example |
Simple Example showing only image import features |
Logger.php |
Example |
Used by the example scripts |
lib.uuid.LICENCE.txt |
Doc. |
LICENCE file for J. King's DrUUID class for UUID generation |
lib.uuid.manual.html |
Doc. |
Documentation for J. King's DrUUID class for UUID generation |