Example to get text from Office Open XML files (docx, xlsx, pptx).
For more information, refer to the following article (Japanese)
【PHP】docx, xlsx, pptxのテキストを取得する
Confirmed working environment
- Mac OS Monterey 12.0.1
- PHP 8.0.8
php getTextFromDocx.php
php getTextFromXlsx.php
php getTextFromXlsx.php