Skip to content

Releases

5.12.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 07:25
f03bcf6

Added

  • Formal support for Php8.6.
  • Psalm taint analysis annotations: the files read and written are file sinks, and cell values are untrusted input. PR #5070

Fixed

  • Ods Writer writes the value of an error cell, such as #N/A or #DIV/0!; every error constant was written as #NULL!. Issue #5022 PR #5067
  • Fix pivot table with two or more data fields removed by Excel. Issue #5106 PR #5107
  • XLOOKUP() without an if_not_found argument returns a real #N/A error when nothing matches, instead of the string #N/A!, so ISNA(), ISERROR() and IFNA() handle it. Issue #5085 PR #5095
  • Defined Name can be set to TRUE or FALSE. Issue #5087 PR #5100
  • Csv Writer: a text cell is written as it is, and only a value that is entirely a number is limited to 15 digits, so text that begins with a long number is no longer cut down to that number. Issue #5092 PR #5094
  • Removing a sheet drops the defined names local to it, and turns the named ranges which refer to it into #REF!, as Excel does. Issue #792 PR #5077
  • SEARCH() treats ? and * in the text to find as wildcards, and ~ as escaping them, as Excel does; they were matched literally. Issue #5075 PR #5076

3.10.10

Choose a tag to compare

@github-actions github-actions released this 22 Nov 07:02

End Of Support Notice

Security patches will continue to be applied to this branch
until 2026-12-15. At that date, no further changes,
including security patches, will be applied.
You are encouraged to upgrade to the master branch (release 5)
before that date.

Fixed

  • Security patches.

2.4.10

Choose a tag to compare

@github-actions github-actions released this 22 Nov 18:52
9be81b8

This Branch Is Now Out Of Support

Although I had hoped to maintain this branch a little longer,
the volume of AI-generated security advisories has made it impossible to maintain branches other than master.
After this release, no further changes,
including security patches, will be applied to this branch.
You are encouraged to upgrade to the master branch (release 5)
as soon as possible.

Deprecated

  • Deprecation annotation added to Spreadsheet class.

2.1.21

Choose a tag to compare

@github-actions github-actions released this 22 Nov 18:55
8c2354e

This Branch Is Now Out Of Support

Although I had hoped to maintain this branch a little longer,
the volume of AI-generated security advisories has made it impossible to maintain branches other than master.
After this release, no further changes,
including security patches, will be applied to this branch.
You are encouraged to upgrade to the master branch (release 5)
as soon as possible.

Deprecated

  • Deprecation annotation is added to Spreadsheet class.

1.30.9

Choose a tag to compare

@github-actions github-actions released this 22 Nov 18:57
8046faf

This Branch Is Now Out Of Support

Although I had hoped to maintain this branch a little longer,
the volume of AI-generated security advisories has made it impossible to maintain branches other than master.
After this release, no further changes,
including security patches, will be applied to this branch.
You are encouraged to upgrade to the master branch (release 5)
as soon as possible.

Deprecated

  • Deprecation annotation has been added to Spreadsheet class.

5.11.0

Choose a tag to compare

@github-actions github-actions released this 08 Nov 06:50
3aa1f0d

Added

  • Ods Writer writes each table as a named database range, with its header row, so that LibreOffice tags the header cells of an exported PDF as /TH; Ods Reader reads a named database range back as a table (the anonymous range LibreOffice keeps for the filter of a sheet stays that sheet's autofilter), and an autofilter now lands on the sheet its range names. Issue #5022 PR #5023
  • Support for Box and Whisker charts in Xlsx reader and writer. Issue #3493
  • Support for Windows Metafiles images (WMF, EMF and EMF+), using the phpoffice/wmf library: Xlsx Writer stores them as is, Ods, Xls, Html and Pdf Writers and comment backgrounds use a PNG rendering; Xlsx and Ods Writers can switch with setConvertMetafilesToPng() (new in BaseWriter), and MemoryDrawing::fromString() / fromStream() accept them. New methods Drawing::isMetafile() and Drawing::getMetafileType(), and new helper Shared\Metafile.
  • Document\Properties::setLanguage(): the language of a spreadsheet as a BCP 47 tag, written and read as dc:language in Xlsx and Ods; the Ods writer also gives it to the default cell style, where LibreOffice keeps a spreadsheet's language, as LibreOffice writes it (the Western, Asian or complex slot by script, and style:rfc-language-tag for a tag with more than a language and a country), and the Ods reader reads it from there when there is no dc:language. Html writes and reads it as the lang of the html element. Issue #5040 PR #5041
  • Xlsx Writer and Reader: Chart::setDescription() is the alternative text of a chart, written as descr of the chart's frame and read back, and the frame takes the chart's name; LibreOffice exports it as /Alt of the chart in a tagged PDF. Issue #5038 PR #5039
  • BaseDrawing::setDecorative() marks an image as decorative. Xlsx writes and reads it as Excel and LibreOffice do (adec:decorative in the image's cNvPr), Ods as LibreOffice does (loext:decorative in the frame's graphic style, which the writer now defines; the reader also takes ODF 1.4's draw:decorative); LibreOffice then leaves the image out of a tagged PDF as an artifact. Html writes and reads it as an empty alt. Issue #5036 PR #5037
  • Xlsx Writer and Reader: the description of a header/footer image is its alternative text, alt on the VML shape as Excel writes it. Issue #5056 PR #5057

Changed

  • Update infrastructure for running samples in browser. PR #5061 PR #5068
  • phpoffice/wmf is a new required dependency, used to render Windows Metafiles images.
  • The exception thrown for an unsupported comment background image now lists WMF and EMF among the supported types (Drawing::UNSUPPORTED_IMAGE_TYPE_MESSAGE).
  • Some Windows environments are added to CI unit tests. PR #5053

Deprecated

  • Deprecate _calculateFormulaValue for calculateFormulaValue. PR #4992
  • Tcpdf V6 is now officially deprecated. We will continue to support it for now, but are considering dropping support with the next major PhpSpreadsheet release.

Fixed

  • Xls Writer: a color matching a built-in palette entry above the custom range (e.g. 333333) no longer makes the palette look full, so later custom colors are no longer written as black. Issue #5065 PR #5066
  • Xlsx Reader and AgileEncryption parser reject a DOCTYPE or entity declaration in encrypted workbook metadata before parsing. PR #5072
  • RIGHT() returns all of the text when the number of characters requested is greater than its length. PR #5044
  • Comparison operators order values of different types as Excel does (numbers < text < FALSE < TRUE), so =""<75 is FALSE. PR #5004
  • A "TRUE" or "FALSE" criterion matches logical values in COUNTIF, SUMIF, the database functions and the others sharing their criteria, as Excel does. PR #5006
  • OLE Writer now validates directory names, orders and colors sibling trees correctly, writes conformant CLSIDs and timestamps, and initializes unused directory-entry pointers to NOSTREAM. PR #5033
  • MIN and MAX return #VALUE! for non-numeric text typed as an argument, and count logical values and numeric text typed as an argument, as Excel (and SUM) do. PR #5005
  • VALUE() no longer treats product-like text such as 5V 2.1A - EU Wall Adaptor as a date serial. Issue #4996 PR #4997
  • Minor Xml Reader Improvements. PR #4989
  • Rename and change visibility of 2 Xls Writer properties. PR #4995
  • Documentation infrastructure tweaks. PR #4994 PR #4999
  • Ods Writer writes a right-to-left sheet as style:writing-mode="rl-tb", and Ods Reader reads it back; the direction was lost both ways. Issue #5015 PR #5016
  • Ods Writer writes a link to another sheet as #Sheet.A1, as ODF and LibreOffice do, and Ods Reader reads that form back as sheet://Sheet!A1, so a Xlsx saved from it no longer gets a broken location. Issue #5011 PR #5012
  • Ods Writer and Reader: the description of an image is written as svg:desc and read back, so that LibreOffice exports it as the alternative text of the figure. Issue #5009 PR #5010
  • Ods Writer and Csv Writer (with preferHyperlinkToLabel) no longer add an empty hyperlink to every cell they write, which made a later Xlsx save throw "Invalid parameters passed." Issue #5007 PR #5008 PR #5021
  • Ods Writer keeps the hyperlink of a number, boolean or formula cell, and Ods Reader reads it back; only text cells had one. Issue #5013 PR #5014
  • Don't iterate cell ranges on non-existent sheets. Issue #5032 PR #5035
  • Xls Writer normalizes color strings to upper case and picks the next custom palette index from the highest index in use, so a color can no longer overwrite the palette slot of an earlier color (e.g. a font rendering in a fill color). Issue #5019 PR #5020
  • Ods Reader reads the hyperlink LibreOffice keeps in the style of a number, boolean, date or formula cell (style:hyperlink in style:table-cell-properties), as it writes a link from a Xlsx file. Issue #5017 PR #5018
  • removeColumn() no longer throws "Invalid column index 0" when it removes column A and every column up to the highest data column, e.g. removeColumn('A') on an empty sheet. Issue #5049 PR #5050
  • removeColumn() and removeRow() take the removed columns/rows out of data validation ranges: a validation that lies only on them is deleted, and a range that ends on them shrinks, instead of covering the column/row that slides into their place. Issue #5047 PR #5048
  • Minor cleanup in Ods Reader to fix test which was not working in Windows. PR #5052
  • A fraction number format writes an integer as a fraction when the format has no integer part, so 1 is 1/1 with 0/0, and when the last numerator placeholder is 0, so 1 is 1 0/1 with 0 0/0, as Excel does. Issue #3625 PR #5060
  • Removing or inserting a column that shifts the header row of a table no longer throws Worksheet no longer exists. Issue #5058 [PR #5059](https://github.com/PHPOffice/PhpSp...
Read more

3.10.9

Choose a tag to compare

@github-actions github-actions released this 08 Nov 04:52

End Of Support Notice

Security patches will continue to be applied to this branch
until 2026-12-15. At that date, no further changes,
including security patches, will be applied.
You are encouraged to upgrade to the master branch (release 5)
before that date.

Fixed

  • Security patches.
  • File::realpath should not issue file_exists. Vaguely security-related backport of PR #5043.
  • OLE fixes. Vaguely security-related backport of PR #4983 PR #5033.
  • Avoid some breaks caused by new versions of libxml. Backport of PR #5054

2.4.9

Choose a tag to compare

@github-actions github-actions released this 08 Nov 05:32

This Branch Is Now Out Of Support

Although I had hoped to maintain this branch a little longer,
the volume of AI-generated security advisories has made it impossible to maintain branches other than master.
After this release, no further changes,
including security patches, will be applied to this branch.
You are encouraged to upgrade to the master branch (release 5)
as soon as possible.

Fixed

  • Security patches.
  • File::realpath should not issue file_exists. Vaguely security-related backport of PR #5043.
  • OLE fixes. Vaguely security-related backport of PR #4983 PR #5033.

2.1.20

Choose a tag to compare

@github-actions github-actions released this 08 Nov 05:16

This Branch Is Now Out Of Support

Although I had hoped to maintain this branch a little longer,
the volume of AI-generated security advisories has made it impossible to maintain branches other than master.
After this release, no further changes,
including security patches, will be applied to this branch.
You are encouraged to upgrade to the master branch (release 5)
as soon as possible.

Fixed

  • Security patches.
  • File::realpath should not issue file_exists. Vaguely security-related backport of PR #5043.
  • OLE fixes. Vaguely security-related backports of PR #4983 PR #5033.

1.30.8

Choose a tag to compare

@github-actions github-actions released this 08 Nov 06:02

This Branch Is Now Out Of Support

Although I had hoped to maintain this branch a little longer,
the volume of AI-generated security advisories has made it impossible to maintain branches other than master.
After this release, no further changes,
including security patches, will be applied to this branch.
You are encouraged to upgrade to the master branch (release 5)
as soon as possible.

Fixed

  • Security patches.
  • File::realpath should not issue file_exists. Vaguely security-related backport of PR #5043.
  • OLE fixes. Vaguely security-related backport of PR #4983 PR #5033.