定制 ahmedshareefogp/docx-manager 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ahmedshareefogp/docx-manager

最新稳定版本:2.0

Composer 安装命令:

composer require ahmedshareefogp/docx-manager

包简介

A PHP library to generate, modify, and manage DOCX files (Laravel-friendly).

README 文档

README

🧩 DocxManager

DocxManager is a powerful PHP library for reading, editing, and rebuilding .docx documents — without needing Microsoft Word. It lets you replace placeholders, repeat table rows or sections, tweak text formatting, and handle checkboxes — all while preserving the original document structure and styling.

Version 1.0 🚀 Features

  • Smart Placeholder Replacement – Replace tags like v_first_name_v across paragraphs, tables, and lists without breaking formatting.
  • Repeating Sections – Duplicate or remove content blocks between markers (e.g., rr__rstart__rr / rr__rend__rr) using array data.
  • Run & Font Controls – Modify font size, color, and styles on individual text runs while preserving document structure.
  • Paragraph & Spacing Tools – Adjust line height, before/after spacing, and fix RTL indentation in tables or lists.
  • Checkbox & Form Handling – Automatically update checkboxes and form fields based on provided data.
  • Lightweight & Framework-Agnostic – 100% PHP; works with Laravel, Symfony, or standalone projects.
  • Safe DOCX Repackaging – Maintains media, styles, and relationships during file rebuilds.
  • Extensible Design – Modular methods for easy customization and future feature expansion.

🧪 Coming Soon (v1.1+)

  • Streaming placeholder replacement
  • Hybrid Processing Mode – Combines DOM and streaming XML for high performance and low memory use, even on large DOCX files.
  • Built-in benchmarking (track option)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-20