All Versions
19
Latest Version
Avg Release Cycle
149 days
Latest Release
140 days ago

Changelog History
Page 1

  • v0.18.2 Changes

    June 04, 2021

    Full Changelog

    ๐Ÿ› Bug fixes

    • when adding image to relationship first check that the generated RID is actually unique #2063 (tpv-ebben)
    • โšก๏ธ Update chart, don't write 'c:overlap' if grouping is 'clustered' #2052 (dfsd534)
    • โšก๏ธ Update Html parser to accept line-height:normal #2041 (joelgo)
    • ๐Ÿ›  Fix image border in Word2007 Writer for LibreOffice 7 #2021 (kamilmmach)

    Miscellaneous

  • v0.18.1 Changes

    March 08, 2021

    Full Changelog

    ๐Ÿ› Bug fixes

    • ๐Ÿ›  Fix BC break in #1946. This package does not replace laminas/laminas-zendframework-bridge #2032 (mussbach)
  • v0.18.0 Changes

    February 12, 2021

    Full Changelog

    โœจ Enhancements

    ๐Ÿ› Bug fixes

    • ๐Ÿ›  Fix image stroke in libreoffice 7.x #1992 (Adizbek)
    • ๐Ÿ›  Fix deprecated warning for non-hexadecimal number #1988 (Ciki)
    • ๐Ÿ›  Fix limit not taken into account when adding image in template #1967 (jsochor)
    • โž• Add null check when setComplexValue is not found #1936 (YannikFirre)
    • Some document have non-standard locale code #1824 (ErnestStaug)
    • ๐Ÿ›  Fixes PHPDoc @param and @return types for several Converter methods #1818 (caugner)
    • โšก๏ธ Update the regexp to avoid catastrophic backtracking #1809 (juzser)
    • ๐Ÿ›  Fix PHPUnit tests on develop branch #1771 (mdupont)
    • ๐Ÿ‘ฏ TemplateProcessor cloneBlock wrongly clones images #1763 (alarai)

    Miscellaneous

    • Compatibility with PHP 7.4, PHP 8.0 and migrate to Laminas Escaper #1946 (liborm85)
    • โœ‚ Remove legacy PHPOffice/Common package, fix PHP 8.0 compatibility #1996 (liborm85)
    • ๐Ÿ‘Œ Improve Word2007 Test Coverage #1858 (oleibman)
    • ๐Ÿ›  Fix typo in docs. Update templates-processing.rst #1952 (mnvx)
    • ๐Ÿ›  Fix documentation and method name for FootnoteProperties #1776 (mdupont)
    • ๐Ÿ›  fix: documentation about paragraph indentation #1764 (mdupont)
    • โšก๏ธ Update templates-processing.rst #1745 (igronus)
    • Unused variables $rows, $cols in sample #1877 (ThanasisMpalatsoukas)
    • โž• Add unit test for NumberingStyle #1744 (Manunchik)
    • โž• Add unit test for PhpWord Settings #1743 (Manunchik)
    • โž• Add unit test for Media elements #1742 (Manunchik)
    • โšก๏ธ Update templates processing docs #1729 (hcdias)
  • v0.17.0 Changes

    October 01, 2019

    โž• Added

    ๐Ÿ›  Fixed

    Miscellaneous

    • โœ… Use embedded http server to test loading of remote images @troosan #1544
    • ๐Ÿ”„ Change private to protected to be able extending class Html @SpinyMan #1646
    • ๐Ÿ›  Fix apt-get crash in Travis CI for PHP 5.3 @mdupont #1707
  • v0.16.0 Changes

    December 30, 2018

    โž• Added

    • โž• Add getVariableCount method in TemplateProcessor. @nicoder #1272
    • โž• Add setting Chart Title and Legend visibility @Tom-Magill #1433
    • โž• Add ability to pass a Style object in Section constructor @ndench #1416
    • โž• Add support for hidden text @Alexmg86 #1527
    • โž• Add support for setting images in TemplateProcessor @SailorMax #1170
    • โž• Add "Plain Text" type to SDT (Structured Document Tags) @morrisdj #1541
    • โž• Added possibility to index variables inside cloned block in TemplateProcessor @JPBetley #817
    • โž• Added possibility to replace variables inside cloned block with values in TemplateProcessor @DIDoS #1392

    ๐Ÿ›  Fixed

    Miscelaneous

  • v0.15.0 Changes

    July 14, 2018

    โž• Added

    ๐Ÿ›  Fixed

    ๐Ÿ”„ Changed

    • โœ‚ Remove zend-stdlib dependency @Trainmaster #1284
    • ๐Ÿ’… The default unit for \PhpOffice\PhpWord\Style\Image changed from px to pt.

    Miscelaneous

    • โฌ‡๏ธ Drop GitHub pages, switch to coveralls for code coverage analysis @czosel #1360
  • v0.14.0 Changes

    December 29, 2017

    ๐Ÿš€ This release fixes several bugs and adds some new features.
    โš  PHP 7.0 and 7.1 are now supported without warnings.

    โž• Added

    • Possibility to control the footnote numbering - @troosan #1068
    • Image creation from string - @troosan #937
    • Introduced the \PhpOffice\PhpWord\SimpleType\NumberFormat simple type. - @troosan
    • ๐Ÿ‘Œ Support for ContextualSpacing - @postHawk #1088
    • Possiblity to hide spelling and/or grammatical errors - @troosan #542
    • 0๏ธโƒฃ Possiblity to set default document language as well as changing the language for each text element - @troosan #1108
    • ๐Ÿ‘Œ Support for Comments - @troosan #1067
    • ๐Ÿ‘Œ Support for paragraph textAlignment - @troosan #1165
    • โž• Add support for HTML underline tag in addHtml - @zNightFalLz #1186
    • ๐Ÿ‘ Allow to change cell width unit - @guillaume-ro-fr #986
    • ๐Ÿ‘ Allow to change the line height rule @troosan
    • Implement PageBreak for odt writer @cookiekiller #863 #824
    • ๐Ÿ‘ Allow to force an update of all fields on opening a document - @troosan #951
    • ๐Ÿ‘ Allow adding a CheckBox in a TextRun - @irond #727
    • โž• Add support for HTML img tag - @srggroup #934
    • โž• Add support for password protection for docx - @mariahaubner #1019

    ๐Ÿ›  Fixed

    ๐Ÿ—„ Deprecated

    • PhpWord->getProtection(), get it from the settings instead PhpWord->getSettings()->getDocumentProtection();
  • v0.13.0 Changes

    July 31, 2016

    ๐Ÿš€ This release brings several improvements in TemplateProcessor, automatic output escaping feature for OOXML, ODF, HTML, and RTF (turned off, by default). It also introduces constants for horizontal alignment options, and resolves some issues with PHP 7. Manual installation feature has been dropped since the release. Please, use Composer to install PHPWord.

    โž• Added

    • Introduced the \PhpOffice\PhpWord\SimpleType\Jc simple type. - @RomanSyroeshko
    • Introduced the \PhpOffice\PhpWord\SimpleType\JcTable simple type. - @RomanSyroeshko
    • ๐Ÿ‘€ Introduced writer for the "Paragraph Alignment" element (see \PhpOffice\PhpWord\Writer\Word2007\Element\ParagraphAlignment). - @RomanSyroeshko
    • ๐Ÿ‘€ Introduced writer for the "Table Alignment" element (see \PhpOffice\PhpWord\Writer\Word2007\Element\TableAlignment). - @RomanSyroeshko
    • ๐Ÿ‘Œ Supported indexed arrays in arguments of TemplateProcessor::setValue(). - @RomanSyroeshko #618
    • Introduced automatic output escaping for OOXML, ODF, HTML, and RTF. To turn the feature on use phpword.ini or \PhpOffice\PhpWord\Settings. - @RomanSyroeshko #483
    • ๐Ÿ‘Œ Supported processing of headers and footers in TemplateProcessor::applyXslStyleSheet(). - @RomanSyroeshko #335

    ๐Ÿ”„ Changed

    • ๐Ÿ‘Œ Improved error message for the case when autoload.php is not found. - @RomanSyroeshko #371
    • ๐Ÿ’… Renamed the align option of NumberingLevel, Frame, Table, and Paragraph styles into alignment. - @RomanSyroeshko
    • ๐Ÿ‘Œ Improved performance of TemplateProcessor::setValue(). - @kazitanvirahsan #614, #617

    ๐Ÿ—„ Deprecated

    • ๐Ÿ’… getAlign and setAlign methods of NumberingLevel, Frame, Table, and Paragraph styles.
      ๐Ÿ‘‰ Use the correspondent getAlignment and setAlignment methods instead. - @RomanSyroeshko
    • left, right, and justify alignment options for paragraphs (now are mapped to Jc::START, Jc::END, and Jc::BOTH). - @RomanSyroeshko
    • left, right, and justify alignment options for tables (now are mapped to Jc::START, Jc::END, and Jc::CENTER). - @RomanSyroeshko
    • ๐Ÿ‘ TCPDF due to its limited HTML support. Use DomPDF or MPDF writer instead. - @RomanSyroeshko #399

    โœ‚ Removed

    • ๐Ÿ’… \PhpOffice\PhpWord\Style\Alignment. Style properties, which previously stored instances of this class, now deal with strings.
      In each case set of available string values is defined by the correspondent simple type. - @RomanSyroeshko
    • ๐Ÿš€ Manual installation support. Since the release we have dependencies on third party libraries,
      so installation via ZIP-archive download is not an option anymore. To install PHPWord use Composer.
      ๐Ÿšš We also removed \PhpOffice\PhpWord\Autoloader, because the latter change made it completely useless.
      ๐Ÿ‘€ Autoloaders provided by Composer are in use now (see bootstrap.php). - @RomanSyroeshko
    • \PhpOffice\PhpWord\Shared\Drawing replaced by \PhpOffice\Common\Drawing. - @Progi1984 #658
    • \PhpOffice\PhpWord\Shared\Font. - @Progi1984 #658
    • \PhpOffice\PhpWord\Shared\String replaced by \PhpOffice\Common\Text. - @Progi1984 @RomanSyroeshko #658
    • \PhpOffice\PhpWord\Shared\XMLReader replaced by \PhpOffice\Common\XMLReader. - @Progi1984 #658
    • \PhpOffice\PhpWord\Shared\XMLWriter replaced by \PhpOffice\Common\XMLWriter. - @Progi1984 @RomanSyroeshko #658
    • AbstractContainer::addMemoryImage(). Use AbstractContainer::addImage() instead.

    ๐Ÿ›  Fixed

    • Undefined property error while reading MS-DOC documents. - @jaberu #610
    • Corrupted OOXML template issue in case when its names is broken immediately after $ sign.
      That case wasn't taken into account in implementation of TemplateProcessor::fixBrokenMacros(). - @RomanSyroeshko @d-damien #548
  • v0.12.1 Changes

    August 30, 2015

    ๐Ÿš€ Maintenance release. This release is focused primarily on TemplateProcessor.

    ๐Ÿ”„ Changes

    • ๐Ÿ”„ Changed visibility of all private properties and methods of TemplateProcessor to protected. - @RomanSyroeshko #498
    • ๐Ÿ‘Œ Improved performance of TemplateProcessor::setValue(). - @RomanSyroeshko @nicoSWD #513

    ๐Ÿ›  Bugfixes

    • Fixed issue with "Access denied" message while opening Sample_07_TemplateCloneRow.docx and Sample_23_TemplateBlock.docx result files on Windows platform. - @RomanSyroeshko @AshSat #532
    • Fixed PreserveText element alignment in footer (see Sample_12_HeaderFooter.php). - @RomanSyroeshko @SSchwaiger #495
  • v0.12.0 Changes

    January 03, 2015

    ๐Ÿš€ This release added form fields (textinput, checkbox, and dropdown), drawing shapes (arc, curve, line, polyline, rect, oval), and basic 2D chart (pie, doughnut, bar, line, area, scatter, radar) elements along with some new styles. Basic MsDoc reader is introduced.

    ๐Ÿ”‹ Features

    • Element: Ability to add drawing shapes (arc, curve, line, polyline, rect, oval) using new Shape element - @ivanlanin #123
    • ๐Ÿ’… Font: New scale, spacing, and kerning property of font style - @ivanlanin
    • ๐Ÿ’… Paragraph: Added shading to the paragraph style for full width shading - @lrobert #264
    • ๐Ÿ‘ RTF Writer: Support for sections, margins, and borders - @ivanlanin #249
    • Section: Ability to set paper size, e.g. A4, A3, and Legal - @ivanlanin #249
    • General: New PhpWord::save() method to encapsulate IOFactory - @ivanlanin
    • General: New Shared\Converter static class - @ivanlanin
    • Chart: Basic 2D chart (pie, doughnut, bar, line, area, scatter, radar) - @ivanlanin #278
    • Chart: 3D charts and ability to set width and height - @ivanlanin
    • FormField: Ability to add textinput, checkbox, and dropdown form elements - @ivanlanin #266
    • Setting: Ability to define document protection (readOnly, comments, trackedChanges, forms) - @ivanlanin
    • ๐Ÿšš Setting: Ability to remove [Compatibility Mode] text in the MS Word title bar - @ivanlanin
    • SDT: Ability to add structured document tag elements (comboBox, dropDownList, date) - @ivanlanin
    • ๐Ÿ‘ Paragraph: Support for paragraph with borders - @ivanlanin #294
    • ๐Ÿ‘ Word2007 Writer : Support for RTL - @Progi1984 #331
    • MsDOC Reader: Basic MsDOC Reader - @Progi1984 #23, #287
    • "absolute" horizontal and vertical positioning of Frame - @basjan #302
    • โž• Add new-page function for PDF generation. For multiple PDF-backends - @chc88 #426
    • ๐Ÿ’… Report style options enumerated when style unknown - @h6w

    ๐Ÿ›  Bugfixes

    • ๐Ÿ›  Fix rare PclZip/realpath/PHP version problem - @andrew-kzoo #261
    • ๐Ÿ›  addHTML encoding and ampersand fixes for PHP 5.3 - @bskrtich #270
    • Page breaks on titles and tables - @ivanlanin #274
    • Table inside vertical border does not rendered properly - @ivanlanin #280
    • add<elementName> of container should be case insensitive, e.g. addToc should be accepted, not only addTOC - @ivanlanin #294
    • ๐Ÿ›  Fix specific borders (and margins) were not written correctly in word2007 writer - @pscheit #327
    • "HTML is not a valid writer" exception while running "Sample_36_RTL.php" - @RomanSyroeshko #340
    • "addShape()" magic method in AbstractContainer is mistakenly named as "addObject()" - @GMTA #356
    • ๐Ÿ“„ Element\Section::setPageSizeW() and Element\Section::setPageSizeH() were mentioned in the docs but not implemented.
    • Special Characters (ampersand) in Title break docx output - @RomanSyroeshko #401
    • <th> tag is closed with </td> tag: - @franzholz #438

    ๐Ÿ—„ Deprecated

    • Element\Link::getTarget() replaced by Element\Link::getSource()
    • ๐Ÿ’… Element\Section::getSettings() and Element\Section::setSettings() replaced by Element\Section::getStyle() and Element\Section::setStyle()
    • ๐Ÿ”€ Shared\Drawing and Shared\Font merged into Shared\Converter
    • ๐Ÿ“‡ DocumentProperties replaced by Metadata\DocInfo
    • Template replaced by TemplateProcessor
    • PhpWord->loadTemplate($filename)

    Miscellaneous

    • ๐Ÿ“„ Docs: Add known issue on README about requirement for temporary folder to be writable and update samples/index.php for this requirement check - @ivanlanin #238
    • ๐Ÿ“„ Docs: Correct elements.rst about Line - @chrissharkman #292
    • ๐Ÿšš PclZip: Remove temporary file after used - @andrew-kzoo #265
    • Autoloader: Add the ability to set the autoloader options - @bskrtich #267
    • โ™ป๏ธ Element: Refactor elements to move set relation Id from container to element - @ivanlanin
    • Introduced CreateTemporaryFileException, CopyFileException - @RomanSyroeshko
    • Settings: added method to set user defined temporary directory - @RomanSyroeshko #310
    • ๐Ÿ“‡ Renamed Template into TemplateProcessor - @RomanSyroeshko #216
    • โช Reverted #51. All text escaping must be performed out of the library - @RomanSyroeshko #51