saloonphp/xml-wrangler
XML Wrangler is a Saloon plugin that makes working with XML APIs painless. It adds XML request bodies, automatic XML responses parsing, and convenient helpers for converting between arrays and XML so you can focus on building integrations, not boilerplate.
SimpleXMLElement hacks).Adopt if:
SimpleXML or DOMDocument.Look elsewhere if:
SimpleXML or DOMDocument for one-off tasks.veezee/xml or xmlschema packages for strict validation.lxml (Python) or xml2js (JavaScript).ext-simplexml or Sabre/XML instead.For Executives/Stakeholders: *"XML Wrangler is a strategic investment to eliminate the $50K–$100K/year we spend on custom XML parsing and integration delays. Here’s the business case:
For Engineers/Technical Leads:
*"This package replaces SimpleXMLElement nightmares and regex hacks with a fluent, type-safe API for XML in Laravel. Key benefits:
DOMDocument):
$orders = XmlReader::fromString($xml)
->query('//Order[status="shipped"]')
->map(fn ($node) => ['id' => $node->getAttribute('id'), 'amount' => $node->getContent()]);
$xml = XmlWriter::make()
->element('Customer', ['id' => $customer->id])
->element('Orders', $customer->orders->map(...));
return $this->response->xml()->query('//Result')->first();
How can I help you explore Laravel packages today?