phpoffice/phpword

A pure PHP library for reading and writing word processing documents

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 41 minutes ago
Added to GitGenius on September 8th, 2026
Created on May 6th, 2012
Open Issues & Pull Requests: 1,237 (+0)
GitHub issues: Enabled
Number of forks: 2,735
Total Stargazers: 7,586 (+0)
Total Subscribers: 300 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 26.3 days
Mean response time: 292.4 days
90th percentile: 819.2 days
Tracked items: 242

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 99% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 6% of issues opened in the past year have been closed. Three people close 78% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 276
New in 7 days: 0
Closed in 7 days: 4
Avg open age: 1,781 days
Stale 30+ days: 269
Stale 90+ days: 265

Recent activity

Opened in 7 days: 0
Closed in 7 days: 4
Comments in 7 days: 6
Events in 7 days: 10

Top labels

  • Bug Report (200)
  • Open XML (Word 2007+) (59)
  • Change Request (55)
  • HTML (26)
  • Documentation (25)
  • Open Document (ODT) (19)
  • Status: Waiting for feedback (17)
  • Portable Document (PDF) (12)

Detailed Description

PHPWord is a pure PHP library for reading and writing word processing documents in multiple formats.

The library addresses the need to programmatically generate and manipulate office documents without requiring external dependencies or Microsoft Office installations. It works by providing PHP classes that abstract the underlying file format specifications, allowing developers to build documents through an object-oriented API. PHPWord supports Microsoft Office Open XML (OOXML), Open Document Format (ODF), Rich Text Format (RTF), HTML, and PDF output, enabling flexibility in document generation across different platforms and applications.

Developers should choose PHPWord when building server-side document generation features in PHP applications, such as report generation, invoice creation, or template-based document production. The library suits projects that need to create complex formatted documents with tables, images, charts, headers, footers, and styled text without external service dependencies. It is particularly valuable for applications requiring UTF-8 and East Asian character support, custom font and paragraph styling, or the ability to work with document templates and XSL transformations.

The project maintains active continuous integration with automated testing, demonstrating a commitment to code quality and stability. Development activity shows consistent engagement with the codebase through regular updates and maintenance of the build pipeline.