kmak/phpword2text

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

v1.0.1 2018-09-30 11:19 UTC

This package is not auto-updated.

Last update: 2024-04-28 03:03:53 UTC


README

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;