ptournem / phpword
Fork of PHPWord - A pure PHP library for reading and writing word processing documents (DOCX, ODT, RTF, HTML, PDF) with added functionnalities for images and templating
0.13.3
2016-10-10 05:29 UTC
Requires
- php: >=5.3.3
- ext-xml: *
Requires (Dev)
- dompdf/dompdf: 0.6.*
- mpdf/mpdf: 5.*
- phpdocumentor/phpdocumentor: 2.*
- phploc/phploc: 2.*
- phpmd/phpmd: 2.*
- phpunit/phpunit: 3.7.*
- sebastian/phpcpd: 2.*
- squizlabs/php_codesniffer: 1.*
- tecnick.com/tcpdf: 6.*
Suggests
- ext-gd2: Used to add images
- ext-xmlwriter: Used to write DOCX and ODT
- ext-xsl: Used to apply XSL style sheet to main document part of OOXML template
- ext-zip: Used to write DOCX and ODT
- dompdf/dompdf: Used to write PDF
This package is not auto-updated.
Last update: 2025-01-18 21:25:01 UTC
README
Fork From PHPWord
Only templateProcessor change :
- You can replace a var "${var}" with an image in the document
- A sample is provide in sample 07
- You can get the template structure in a Block object which contains an array of Block and an array of variables
TO DO : be able to replace a var with an image in headers and footers TO DO : PHPUnit Test for added functionnality