sabre/xml
sabre/xml is a lightweight, specialized XML reader and writer for PHP. It makes it easy to parse XML into structured data and generate XML output with namespace support. Version 3 adds strict type declarations and supports PHP 7.4+ and PHP 8.
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?