PHP code example of jove4015 / epub-to-text
1. Go to this page and download the library: Download jove4015/epub-to-text library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jove4015 / epub-to-text example snippets
\jove4015\epub2txt\Epub::getText('book.epub'); //returns the text from the epub
$text = (new Epub())
->setepub('book.epub')
->text();
\jove4015\EpubToText\Epub::getText('book.epub')
$text = (new Epub('/custom/path/to/epub2txt'))
->setepub('book.epub')
->text();
\jove4015\EpubToText\Epub::getText('book.epub', '/custom/path/to/epub2txt')
which epub2txt