Via Composer
composer require psr18-adapter/ext-soap
new \Psr18Adapter\Soap\SoapPsr18Client(
$psr18Client,
$psr7RequestFactory,
$psr7StreamFactory,
$soapWsdl,
$soapOptions
);
Adapter relies on injected HTTP client following PSR-18 specification strictly: It expects HTTP client does not throw exception when server returns valid HTTP response. Otherwise I cannot guarantee same exception handling behaviour as in core extension.
MIT license. Please see License File for more information.