saloonphp/xml-wrangler
XML Wrangler is a lightweight SaloonPHP plugin for working with XML in HTTP requests and responses. Easily build XML bodies, set the right headers, and parse XML responses into usable data for your Laravel or PHP API integrations.
SimpleXMLElement hacks).Adopt if:
Look elsewhere if:
veezee/xml or xmlschema packages.xmlstarlet CLI tools or Python’s lxml).ext-simplexml or Sabre/XML instead).For Executives/Stakeholders: *"XML Wrangler is a game-changer for XML-heavy integrations in our Laravel stack. It eliminates the manual drudgery of parsing/generating XML—saving our team dozens of hours per project—while ensuring consistency and reliability in APIs like [SOAP Gateway] or [Legacy ERP Migration]. By adopting this, we’ll:
For Engineers/Technical Leads:
*"This package replaces SimpleXMLElement and regex hacks with a fluent, type-safe API for XML in Laravel. Here’s why it’s a no-brainer:
$data = XmlReader::fromResponse($response)
->query('//Customer/Orders/Order')
->map(fn ($node) => $node->getContent());
XmlWriter::make()
->element('Order', [
'id' => $order->id,
])
->element('Items', $order->items->map(...));
How can I help you explore Laravel packages today?