PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
  Info   View files Example   View files View files (28)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2016-07-21 (1 year ago) RSS 2.0 feedStarStarStarStar 79%Total: 426 This week: 3All time: 6,170 This week: 131Up
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
  Performance   Level  
Name: Karl Holz <contact>
Classes: 13 packages by
Country: Canada Canada
Age: 37
All time rank: 55519 in Canada Canada
Week rank: 41 Up1 in Canada Canada Up
Innovation award
Innovation award
Nominee: 8x

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 folder image Files  
File Role Description
Files folder imagecss (1 file, 1 directory)
Files folder imagedata (1 file)
Files folder imageeKatab (4 files)
Files folder imagejs (3 files)
Files folder imagexsl (10 files)
Accessible without login Plain text file index.php Aux. Auxiliary script
Accessible without login Plain text file LICENCE Lic. License text
Accessible without login Plain text file README Doc. Documentation
Accessible without login Plain text file RESTful_Web_Services.php Example Example script

  Files folder image Files  /  css  
File Role Description
Files folder imageimages (5 files)
  Accessible without login Plain text file jquery.mobile-1.2.0.css Data Auxiliary data

  Files folder image Files  /  css  /  images  
File Role Description
  Accessible without login Image file ajax-loader.gif Icon Icon image
  Accessible without login Image file icons-18-black.png Data Auxiliary data
  Accessible without login Image file icons-18-white.png Data Auxiliary data
  Accessible without login Image file icons-36-black.png Data Auxiliary data
  Accessible without login Image file icons-36-white.png Data Auxiliary data

  Files folder image Files  /  data  
File Role Description
  Accessible without login Plain text file RESTful_Web_Services.epub.opf.ini Data Auxiliary data

  Files folder image Files  /  eKatab  
File Role Description
  Plain text file css-ui.php Class Class source
  Plain text file eKatab.class.php Class Class source
  Accessible without login Plain text file README.RESTphulSrv.txt Doc. Documentation
  Plain text file REST.class.php Class Class source

  Files folder image Files  /  js  
File Role Description
  Accessible without login Plain text file jquery.js Data Auxiliary data
  Accessible without login Plain text file jquery.mobile-1.2.0.js Data Auxiliary data
  Accessible without login Plain text file jquery.mobile-1.2.0.min.js Data Auxiliary data

  Files folder image Files  /  xsl  
File Role Description
  Accessible without login Plain text file encryption.xml Data Auxiliary data
  Accessible without login Plain text file encryption.xsl Data Auxiliary data
  Accessible without login Plain text file epub-container.xsl Data Auxiliary data
  Accessible without login Plain text file epub-html.xsl Data Auxiliary data
  Accessible without login Plain text file epub-opf.xsl Data Auxiliary data
  Accessible without login Plain text file epub-plist.xsl Data Auxiliary data
  Accessible without login Plain text file epub-toc.xsl Data Auxiliary data
  Accessible without login Plain text file signatures.xml Data Auxiliary data
  Accessible without login Plain text file signatures.xsl Data Auxiliary data
  Accessible without login Plain text file sinf.xml Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:426
This week:3
All time:6,170
This week:131Up
 User Ratings  
 
 All time
Utility:100%StarStarStarStarStarStar
Consistency:100%StarStarStarStarStarStar
Documentation:91%StarStarStarStarStar
Examples:100%StarStarStarStarStarStar
Tests:-
Videos:-
Overall:79%StarStarStarStar
Rank:39