DownloadChangelog
All notable changes to this project are documented in this file.
[2.0.7] - 2026-06-08
Added
-
array variable type (`{{name:array}}`) for repeating table rows.
A list of values fills a table column top-to-bottom: the row holding the
placeholder is cloned once per value, blank rows drawn beneath it are reused
first, and extra rows are added (or surplus blank rows removed) so the table
always matches the data length. Several `array` columns in the same row
expand together to the longest list, padding shorter columns with blank cells.
An `array` placeholder outside a table renders its values on separate lines.
Values are XML-escaped and accept the same inline styles as text.
Tests
-
Unit tests `ArrayProcessorTest` and `VariableParserArrayTest`.
-
Real-`.docx` feature test `DocxArrayExpansionTest` covering the full
fragment-repair -> array-expansion -> replacement pipeline.
- Runnable example `examples/array_table_demo.php`.
|