News
phpdocx 18 release notes
- Sep 30, 2026
We are happy to announce the release of phpdocx 18.
The new phpdocx 18 release introduces powerful new features, expanded compatibility, and a wide range of improvements to make document generation more flexible, reliable, and easier to integrate into any application.
Just go to Pricing to get the license that best suits your project requirements.
Users with a valid License Update Service (LUS) may get this new version at no cost, by going to MY PHPDOCX and selecting the licence(s) they want to update.
Users with previous versions can also upgrade to the new one in the same place.
Also, we encourage you to get LUS, if you don't already have it, in order to get the next releases for free, plus other benefits, for a whole year.
The complete list features of phpdocx 18 is the following:
- New JSON API:
- JSON-based API to generate and manipulate documents using structured JSON data.
- Microservice-based design for integration into distributed architectures.
- REST-ready architecture for easily exposing workflows through APIs.
- Language-agnostic integration using JSON data structures.
- Easily extensible to add and customize features.
- Use phpdocx with JSON data.
- PHP 8.6 support.
- New features to work with structured document tags (content controls) using addStructuredDocumentTag:
- Supported repeating sections: repeatingSection and repeatingSectionItem options.
- New sdtContent type to add structured document tag as internal child.
- Drop cap support:
- New addDropCap method.
- Added the framePr option to paragraph styles.
- Added the firstMatch option to the following template methods:
- removeTemplateVariable.
- modifyInputFields.
- New setCompatibilityMode method to set the compatibility mode value of the document.
- HTML to DOCX:
- New options to set addDefaultStyles separately to paragraphs and run-of-text content: addDefaultStylesPpr and addDefaultStylesRpr.
- HTML Extended:
- HTML Extended tags: phpdocx_dropcap.
- New styles in addText:
- Type of spacing between lines: spacingLineRule.
- Vertical character alignment on line: vAlign.
- OpenType number spacing and number forms: numForm and numSpacing.
- Text frame properties: framePr.
- SignPDFPlus:
- Improved support for UTF-16 content.
- Improved handling of internal stream content.
- Added additional validation when processing malformed PDF files.
- JavaScript API:
- Updated all internal dependencies to their latest versions.
- Added new methods to phpdocx CLI command.
- DOCXCustomizer:
- Added the framePr option in paragraph styles.
- New version of the WordPress plugin
- Improved setRTL to support disabling the bidi and rtl options through the method.
- Do not call getimagesize in addImage when adding base64 images.
- Extra check when transforming EMF files on Linux servers with TransformDocAdvHTML and TransformDocAdvPDF to check if shell_exec is callable.
- Improved XML content sanitization by automatically removing invalid XML 1.0 control characters.
- Added the $invalidXmlChars static variable in XmlUtilities to define the invalid XML characters to be cleaned automatically from strings.
- Converted TXT information files to Markdown.
- Added a SECURITY.md file containing information about the security policy.
- Improved the internal phpdoc documentation.