# PHPOffice/PHPWord

A pure PHP library for reading and writing word processing documents

Repository: https://github.com/PHPOffice/PHPWord
Canonical: https://ross.abutalabs.com/products/phpword
Homepage: https://phpoffice.github.io/PHPWord/
Language: PHP
License: NOASSERTION
License Family: other
Topics: php, libreoffice-writer, msword, doc, docx, html, odt, pdf, rtf, office
Last push: 2026-08-26T15:27:10+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 5232, "days_push": 7, "days_rel": 454, "gap_med": null, "n_releases_24m": 1}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7585, forks 2731 (observed 2026-08-28T04:10:01.800931+00:00)

## What it is
PHPWord is a pure PHP library for reading and writing word processing documents in formats such as DOCX, ODT, RTF, DOC, HTML, and PDF. It lets PHP scripts dynamically create documents with sections, styles, tables, images, charts, headers/footers, and template-based generation.

## Use cases
- generate docx invoices from php
- create word documents programmatically
- read and parse docx files in php
- fill word document templates with data
- convert documents to pdf or html from php
- generate odt reports with tables and images

## When to choose
- you need to create or modify Word/OpenDocument documents from PHP without external tools
- you want template-based document generation with images, tables, and charts
- you need a pure PHP solution with no native dependencies

## When to avoid
- you need full-fidelity conversion between complex office formats
- you work outside PHP
- you need to render PDFs with precise layout control rather than basic PDF output

## Facets
- artifact type: library
- maturity: stable
- function: parser, pdf, templating, file-system
- domain: files, pdf, developer-tools, web-development
- platform: php, cross-platform
- tags: docx, odt, rtf, word-documents, office-documents, document-generation, php-library

## Member repositories
- PHPOffice/PHPWord (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:01.800931+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:36:54.149033+00:00, confidence not recorded.
  - readme: https://github.com/PHPOffice/PHPWord (fetched 2026-08-28T04:10:01.800931+00:00, sha 89a3bf3dc623)
  - homepage: https://phpoffice.github.io/PHPWord/ (fetched 2026-08-29T08:32:13.794984+00:00, sha 9472e803d498)
- Data as of 2026-08-30T08:39:29.467469+00:00.
