kmak / phpword2text
PHP Library for simply extracting text from Word documents. No formatting provided.
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/kmak/phpword2text
Requires
- php: ^5.3.3 || ^7.0
- phpoffice/phpword: ^0.14.0
Requires (Dev)
- phpunit/phpunit: ^7
This package is not auto-updated.
Last update: 2025-10-26 10:59:54 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;