php-soap/xml
php-soap/xml is a lightweight XML library for PHP focused on SOAP. It offers namespace-aware parsing and generation so you can build, inspect, and transform SOAP envelopes and XML payloads through a small, predictable API. Designed for dependable XML handling in PHP applications.
SoapClient/DOMDocument for our SOAP connectors (banking, ERP, shipping, government/tax APIs, payment gateways), or adopt a maintained low-level XML layer instead.DOMDocument code in every connector. The decision it informs is "adopt a shared XML/SOAP envelope layer" vs. "write our own helper class."SoapGateway contract) so the underlying library can be swapped. php-soap/xml is one implementation detail beneath that boundary.php-soap/* suite (client, WSDL tooling, engines), php-soap/xml is the common substrate; pulling it in is a coherence decision, not a standalone one.Consider it when:
php-soap/* ecosystem and want the same envelope/namespace abstraction across connectors.Look elsewhere when:
php-soap/client or the native SoapClient; this package is a layer underneath that.php-soap/wsdl / generator territory).For executives (30 seconds):
"We have integrations — banking, ERP, a couple of partner APIs — that only speak SOAP, an older XML-based protocol. Right now each connector reinvents the same fragile XML plumbing. php-soap/xml is a small, MIT-licensed, actively maintained PHP library that gives us one clean, tested way to build and inspect those SOAP messages. Cost is effectively zero, it's a narrow piece of plumbing rather than a platform commitment, and because it's MIT we can vendor or fork it if the project ever stalls. The real value is risk reduction: less bespoke XML code, fewer integration incidents, faster delivery on legacy connectors. It does not replace a full SOAP client — it sits underneath one — so this is a targeted, low-stakes adoption, not a bet-the-roadmap decision."
For engineering leads:
php-soap/client, so adopting it now avoids a later refactor if we standardize on that suite.DOMDocument calls scattered through services.How can I help you explore Laravel packages today?