2017 © Pedro Peláez
 

library epub-to-text

Extract text from a epub - based on spatie/pdf-to-text

image

jove4015/epub-to-text

Extract text from a epub - based on spatie/pdf-to-text

  • Friday, December 15, 2017
  • by jove4015
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 38 Forks
  • 0 Open issues
  • 7 Versions
  • 8 % Grown

The README.md

Extract text from an epub

This package provides a class to extract text from an epub., (*1)

 \jove4015\epub2txt\Epub::getText('book.epub'); //returns the text from the epub

Requirements

Behind the scenes this package leverages epub2txt. You can verify if the binary installed on your system by issueing this command:, (*2)

which epub2txt

If it is installed it will return the path to the binary., (*3)

To install the binary you can follow the instructions here: (http://kevinboone.net/README_epub2txt.html), (*4)

Installation

You can install the package via composer:, (*5)

$ composer require jove4015/epub-to-text

Usage

Extracting text from an epub is easy., (*6)

$text = (new Epub())
    ->setepub('book.epub')
    ->text();

Or easier:, (*7)

 \jove4015\EpubToText\Epub::getText('book.epub')

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, (*8)

$text = (new Epub('/custom/path/to/epub2txt'))
    ->setepub('book.epub')
    ->text();

or as the second parameter to the getText-function:, (*9)

 \jove4015\EpubToText\Epub::getText('book.epub', '/custom/path/to/epub2txt')

Testing

bash $ composer test, (*10)

Credits

License

The MIT License (MIT). Please see License File for more information., (*11)

The Versions

15/12 2017

dev-master

9999999-dev https://github.com/jove4015/epub-to-text

Extract text from a epub - based on spatie/pdf-to-text

  Sources   Download

MIT

The Requires

 

The Development Requires

by Stephen Weiss

jove4015 epub-to-text

15/12 2017

1.1.1

1.1.1.0 https://github.com/jove4015/epub-to-text

Extract text from a epub - based on spatie/pdf-to-text

  Sources   Download

MIT

The Requires

 

The Development Requires

by Stephen Weiss

jove4015 epub-to-text

15/12 2017

1.1.0

1.1.0.0 https://github.com/jove4015/epub-to-text

Extract text from a epub - based on spatie/pdf-to-text

  Sources   Download

MIT

The Requires

 

The Development Requires

by Stephen Weiss

jove4015 epub-to-text

13/11 2017

1.0.2

1.0.2.0 https://github.com/spatie/pdf-to-text

Extract text from a pdf

  Sources   Download

MIT

The Requires

 

The Development Requires

spatie pdf-to-text

16/03 2016

1.0.1

1.0.1.0 https://github.com/spatie/pdf-to-text

Extract text from a pdf

  Sources   Download

MIT

The Requires

 

The Development Requires

spatie pdf-to-text

31/12 2015

1.0.0

1.0.0.0 https://github.com/spatie/pdf-to-text

Extract text from a pdf

  Sources   Download

MIT

The Requires

 

The Development Requires

spatie pdf-to-text

31/12 2015

0.0.1

0.0.1.0 https://github.com/spatie/pdf-to-text

Extract text from a pdf

  Sources   Download

MIT

The Requires

 

The Development Requires

spatie pdf-to-text