承接 ottosmops/office2text 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

CI codecov Software License Latest Stable Version Packagist Downloads

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

MIT License

统计信息

  • 总下载量: 28
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-09-01