lyseontech / doctotext
Convert doc to text, wrapper to libreoffice
0.0.1
2020-07-06 00:37 UTC
This package is auto-updated.
Last update: 2024-10-14 01:23:26 UTC
README
Setup
sudo apt-get update sudo apt-get install libreoffice-writer composer require librecodecoop/doctotext
Use
<?php use DocToText\DocToText; $docFile = 'document.doc'; $outputDir = '/tmp'; $doctotext = new DocToText($docFile, $outputDir)); echo "Text:" . PHP_EOL; echo $doctotext->getText(); echo "Total words:" . PHP_EOL; echo $doctotext->count();
Explain
This package is a wrapper to libreoffice.