Download the PHP package jaybizzle/doc-to-text without Composer
On this page you can find all versions of the php package jaybizzle/doc-to-text. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jaybizzle/doc-to-text
More information about jaybizzle/doc-to-text
Files in jaybizzle/doc-to-text
Package doc-to-text
Short Description Extract text from a Word Doc
License MIT
Homepage https://github.com/jaybizzle/doc-to-text
Informations about the package doc-to-text
Extract text from a Word Doc
This package provides a class to extract text from a Word Doc.
Requirements
Behind the scenes this package leverages antiword. You can verify if the binary is installed on your system by issuing this command:
If it is installed it will return the path to the binary.
To install the binary you can use this command on Ubuntu or Debian:
Installation
You can install the package via composer:
Usage
Extracting text from a Doc is easy.
Or easier:
By default the package will assume that the antiword
command is located at /usr/bin/antiword
.
If it is located elsewhere pass its binary path to the constructor
or as the second parameter to the getText
static method:
Sometimes you may want to use antiword options. To do so you can set them up using the setOptions
method.
or as the third parameter to the getText
static method:
Change log
Please see CHANGELOG for more information about what has changed recently.
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Mark Beech
- All Contributors
License
The MIT License (MIT). Please see License File for more information.