ottosmops/office2text
最新稳定版本:0.9.0
Composer 安装命令:
composer require ottosmops/office2text
包简介
Extract text from Microsoft Office (docx, pptx, xlsx) and LibreOffice (odt, odp, ods) documents using PHP and ZipArchive.
README 文档
README
Extract text from Microsoft Office (docx, pptx, xlsx) and LibreOffice (odt, odp, ods) documents using pure PHP (ZipArchive + SimpleXML).
Installation
With Composer:
composer require ottosmops/office2text
Usage
use Ottosmops\Office2text\Extract; $text = (new Extract()) ->document('example.docx') ->text();
Or using the static method:
$text = Extract::getText('example.docx');
Supported formats:
- Microsoft Office: docx, pptx, xlsx
- LibreOffice: odt, odp, ods
License
统计信息
- 总下载量: 28
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-09-01