Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 409 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 409 Bytes

phpword2text

PHP Library for simply extracting text from Word documents. No formatting provided.

Usage

First you need to have composer installed.

foo@bar:~$ composer require kmak/phpword2text

Then in your code you can do the following:

<?php
require __DIR__ . '/vendor/autoload.php';

$phpword = new PHPWord2Text();
$txt = $phpword->extractText('somefile.docx');
echo $txt;