eKatab PHP ePub Reader: Display ebooks in the epub format on Web pages

Recommend this page to a friend!
  Info   Example   View files (28)   Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
74%Total: 603 This week: 2All time: 5,105 This week: 114
Version License PHP version Categories
ekatab 1.0.0Custom (specified...5.6HTML, XML, PHP 5, Content management, P...
Description Author

This package can display eBooks in the epub format.

It can retrieve a given ebook from a local file or a remote URL.

The class can extract its contents and display the ebook on a Web page.

The ebook can be accessed via Web requests to the extracted ebook pages.

Innovation Award
PHP Programming Innovation award nominee
August 2016
Number 7


Prize: One downloadable copy of PhpED Professional
ePub is a common format of eBooks supported by many eBook reader devices.

Basically ePub files are ZIP archives with files of the contents of the ebook.

This class can extract the contents of a ebook in the ePub format and parse it, so the ebook pages can be viewed on Web pages.

Manuel Lemos
Picture of Karl Holz
  Performance   Level  
Name: Karl Holz <contact>
Classes: 14 packages by
Country: Canada Canada
Age: 39
All time rank: 50119 in Canada Canada
Week rank: 61 1 in Canada Canada
Innovation award
Innovation award
Nominee: 9x

Details

@Package eKatab @author Karl Holz <newaeon|a|mac|d|com> @licence LICENCE

eKatab is a PHP interface to an ePub document to allow viewing of your created ibooks, ePub and zipped files with a META-INF/container.xml file pointing to an ofp doc.

It takes 2 arguments, the ePub file and the prefix to the ePub root in no standard zip file layout.

Everything is done automatically once the classes is loaded.

  • access to your ebooks files with the URL path_info
  • All links have been fixed on the fly
  • bookmark-able links with REST-like design (GET only)
  • even works with ePub files purchased from the iTunes book Store (as long as they're not encrypted)
  • works with old o'really iPhone app books (.ipa file type), these will need to use the prefix. The ebook files are in ePub format. The prefix must contain a 'META-INF/container.xml' file or it will fail, ipa files are zips, not too hard to figure out the prefix
  • This is still a work in progress and hasn't really been touched in a few years, but it will display your ePub files in a browser.
  • The REST.class.php is still unpolished, it does the job for this package, but I plan in completing it in the future when I get the time
  • if you're an educational institution feel free to use and modify

Testing

I'm providing the RESTful_Web_Services.epub epub file for testing because it?s freely available under a Creative Commons license [https://creativecommons.org/licenses/by-nc-nd/3.0/] as part of O'Reilly's Open Book Project [http://www.oreilly.com/openbook/]

This is a link to the site here, incase you want to check it out your self:

http://restfulwebapis.org/rws.html

save the books to the root of this web app and the configuration will be generated for each book, that?s the default and easy way of using this program.

  Files  
File Role Description
css (1 file, 1 directory)
data (1 file)
eKatab (4 files)
js (3 files)
xsl (10 files)
index.php Aux. Auxiliary script
LICENCE Lic. License text
README Doc. Documentation
RESTful_Web_Services.php Example Example script

  Files  /  css  
File Role Description
images (5 files)
   jquery.mobile-1.2.0.css Data Auxiliary data

  Files  /  css  /  images  
File Role Description
   ajax-loader.gif Icon Icon image
   icons-18-black.png Data Auxiliary data
   icons-18-white.png Data Auxiliary data
   icons-36-black.png Data Auxiliary data
   icons-36-white.png Data Auxiliary data

  Files  /  data  
File Role Description
   RESTful_Web_Services.epub.opf.ini Data Auxiliary data

  Files  /  eKatab  
File Role Description
   css-ui.php Class Class source
   eKatab.class.php Class Class source
   README.RESTphulSrv.txt Doc. Documentation
   REST.class.php Class Class source

  Files  /  js  
File Role Description
   jquery.js Data Auxiliary data
   jquery.mobile-1.2.0.js Data Auxiliary data
   jquery.mobile-1.2.0.min.js Data Auxiliary data

  Files  /  xsl  
File Role Description
   encryption.xml Data Auxiliary data
   encryption.xsl Data Auxiliary data
   epub-container.xsl Data Auxiliary data
   epub-html.xsl Data Auxiliary data
   epub-opf.xsl Data Auxiliary data
   epub-plist.xsl Data Auxiliary data
   epub-toc.xsl Data Auxiliary data
   signatures.xml Data Auxiliary data
   signatures.xsl Data Auxiliary data
   sinf.xml Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:603
This week:2
All time:5,105
This week:114
 User Ratings  
 
 All time
Utility:93%
Consistency:93%
Documentation:87%
Examples:93%
Tests:-
Videos:-
Overall:74%
Rank:167
  

For more information send a message to info at phpclasses dot org.