πXML Wrangler
XML Wrangler is a first-party library written by the maintainer of Saloon and is designed to modernise reading and writing XML in PHP. XML Wrangler can detect errors in XML, read gigabytes of XML files and convert XML results into Laravel Collections. Its powerful reader supports dot notation and XPath queries.
Key Features
Convert XML into an array
Write XML from an array
Memory-safe reader for large XML documents
Dot notation and XPath support for reading
Documentation
Click the card below to read the documentation
Saloon Integration
XML Wrangler is also integrated with Saloon! Once installed, you'll be able to use the xmlReader()
method on your responses to instantiate an XML Wrangler reader.
Request Body
You may also choose to use XML Wrangler to create the request body when sending XML requests in Saloon.
Last updated