v2.0.2
Feature release
Features
- #357 / #437 / #473 / #297 / #449 β
insertImageOpt($row, $col, $path, $options)extends image placement beyond the width/height scale factors ofinsertImage(): pixel-precisex_offset/y_offsetwithin the anchor cell, a "don't move or size with cells" anchor mode (soconstMemory+ dynamic row heights stop warping the image), plus a mouseovertip, alt text (description/decorative) and aurlhyperlink overlay. Object positioning is exposed via newExcel::OBJECT_POSITION_DEFAULT/MOVE_AND_SIZE/MOVE_DONT_SIZE/DONT_MOVE_DONT_SIZE/MOVE_AND_SIZE_AFTERconstants. The originalinsertImage()signature is untouched. - #503 β
insertDynamicFormula()andinsertDynamicArrayFormula()emit thet="array"+ ref-range XML that Excel 365 dynamic array functions (UNIQUE,FILTER,SORT,SEQUENCE,XLOOKUP, β¦) require.insertFormula()does not produce that markup, so those functions previously did not spill. - #540 β
outlineSettings(bool $visible = true, bool $below = true, bool $right = true, bool $autoStyle = false)configures worksheet outline (grouping) display.
Fixes
- #543 β PHP
true/falsepassed todata()/writeSheet()now writes a real boolean cell (xlsxtype="b") instead of falling throughtype_writer()silently and emitting a blank cell.
Install
The self-contained xlswriter-2.0.2.tgz attached below is what pecl install xlswriter and pie install viest/xlswriter consume; the packagist zipball has no submodules and cannot build.