devengine / phpword
PHPWord - A pure PHP library for reading and writing word processing documents (OOXML, ODF, RTF, HTML, PDF)
Requires
- php: ^5.3.3 || ^7.0 || ^8.0
- ext-xml: *
- laminas/laminas-escaper: ^2.2
Requires (Dev)
- ext-gd: *
- ext-zip: *
- dompdf/dompdf: 0.8.* || 1.0.*
- friendsofphp/php-cs-fixer: ^2.2
- mpdf/mpdf: 5.7.4 || 6.* || 7.* || 8.*
- php-coveralls/php-coveralls: 1.1.0 || ^2.0
- phploc/phploc: 2.* || 3.* || 4.* || 5.* || 6.* || 7.*
- phpmd/phpmd: 2.*
- phpunit/phpunit: ^4.8.36 || ^7.0
- squizlabs/php_codesniffer: ^2.9 || ^3.5
- tecnickcom/tcpdf: 6.*
Suggests
- ext-gd2: Allows adding images
- ext-xmlwriter: Allows writing OOXML and ODF
- ext-xsl: Allows applying XSL style sheet to headers, to main document part, and to footers of an OOXML template
- ext-zip: Allows writing OOXML and ODF
- dompdf/dompdf: Allows writing PDF
README
PHPWord is a library written in pure PHP that provides a set of classes to write to and read from different document file formats. The current version of PHPWord supports Microsoft Office Open XML (OOXML or OpenXML), OASIS Open Document Format for Office Applications (OpenDocument or ODF), Rich Text Format (RTF), HTML, and PDF.
PHPWord is an open source project licensed under the terms of LGPL version 3. PHPWord is aimed to be a high quality software product by incorporating continuous integration and unit testing. You can learn more about PHPWord by reading the Developers' Documentation.
This PHPWord version provides reading nested tables in Word2007 documents.