sabre/xml
sabre/xml is a specialized PHP library for reading and writing XML. It offers a flexible reader/writer API with good namespace support, modern type declarations in v3, and compatibility with PHP 7.4 and 8 for building reliable XML-based integrations.
This release supports PHP 8.2 and up. That is specified in composer.json so consumers should automatically select it only for projects that have minimum PHP 8.2 support.
The 4.0.* release series, supporting PHP 7.4 8.0 8.1, will have bugfixes backported if relevant/needed for some time.
Contains code style changes applied by php-cs-fixer major version 3. No changes to behavior.
This has been released as a major release to be sure that consumers can implement it as-and-when they wish, just in case someone has some code that depends on the Windows file path URI parsing that changed a bit between sabre/uri 2 and 3.
The use of sabre/uri major version 1 has also been dropped - that major version is very old, and everyone should be on major version 2 with PHP 7.4 or later anyway.
Major version 3 implements type declarations for input parameters, function returns, variables etc. It supports PHP 7.4 and PHP 8. When you upgrade to major version 3, if you extend classes etc., then you will need to make similar type declarations in your code.
functionCaller deserializer function for executing a callable when reading a XML
element (@vsouz4)parseCurrentElement() edge-casesHow can I help you explore Laravel packages today?