Download the PHP package jove4015/epub-to-text without Composer
On this page you can find all versions of the php package jove4015/epub-to-text. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jove4015/epub-to-text
More information about jove4015/epub-to-text
Files in jove4015/epub-to-text
Package epub-to-text
Short Description Extract text from a epub - based on spatie/pdf-to-text
License MIT
Homepage https://github.com/jove4015/epub-to-text
Informations about the package epub-to-text
Extract text from an epub
This package provides a class to extract text from an epub.
Requirements
Behind the scenes this package leverages epub2txt. You can verify if the binary installed on your system by issueing this command:
If it is installed it will return the path to the binary.
To install the binary you can follow the instructions here: (http://kevinboone.net/README_epub2txt.html)
Installation
You can install the package via composer:
Usage
Extracting text from an epub is easy.
Or easier:
By default the package will assume that the epub2txt
is located at /usr/bin/epub2txt
.
If you're using the a different location pass the path to the binary in constructor
or as the second parameter to the getText
-function:
Testing
Credits
- Freek Van der Herten - Wrote the original pdf-to-text package on which this is based
- Kevin Boone - Wrote the epub2txt CLI utility
License
The MIT License (MIT). Please see License File for more information.