PHPackages                             andrei-stepanov/soapclient-transports - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. andrei-stepanov/soapclient-transports

ActiveLibrary[HTTP &amp; Networking](/categories/http)

andrei-stepanov/soapclient-transports
=====================================

Transports for PHP SoapClient

0.1.0(7mo ago)01MITPHPPHP ^7.2||^8.0CI passing

Since Oct 11Pushed 7mo agoCompare

[ Source](https://github.com/andrei-stsiapanau/soapclient-transports)[ Packagist](https://packagist.org/packages/andrei-stepanov/soapclient-transports)[ RSS](/packages/andrei-stepanov-soapclient-transports/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (2)Used By (0)

SOAP Client Transports
======================

[](#soap-client-transports)

A modern, PSR-compliant PHP library for flexible SOAP client transport implementations with support for PSR-7/PSR-18 standards, Guzzle HTTP client, and asynchronous promise-based requests.

[![PHP Version](https://camo.githubusercontent.com/7663c9d53dc13cedaf0660a8745a7e77d2dd711257f36aa86ebce12a0600ef42/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e312d626c75652e737667)](https://php.net)[![License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)[![Code Coverage](https://camo.githubusercontent.com/12c22154db853e13c63f3442e312c3d318a8882b26be9f691d2c6c56b20ce8a9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d38352e33342532352d627269676874677265656e2e737667)](.coverage/html/index.html)

Features
--------

[](#features)

- ✅ **PHP Core SoapClient Interface Compatibility**: Drop-in replacement for PHP's native `\SoapClient`
- ✅ **Transport Abstraction**: Pluggable transport layer via `TransportInterface`
- ✅ **PSR Message and PSR Client Compatibility**: Full support for PSR-7 (HTTP Message), PSR-18 (HTTP Client)
- ✅ **Guzzle Compatibility**: Native support for Guzzle HTTP client with promise-based async operations
- ✅ **Type Safety**: Strict typing with `declare(strict_types=1)` throughout
- ✅ **Multiple Implementations**:
    - Standard PHP `\SoapClient` wrapper
    - PSR-7/PSR-18 HTTP message transport
    - Guzzle HTTP client support
    - Asynchronous promise-based transport
- ✅ **Backward Compatible**: Semantically versioned for safe upgrades
- ✅ **Well Tested**: 111 tests, 192 assertions, 85%+ code coverage

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- `ext-soap` PHP extension
- PSR-7 HTTP Message implementation (e.g., `guzzlehttp/psr7`)
- PSR-18 HTTP Client implementation (e.g., `guzzlehttp/guzzle`)

Installation
------------

[](#installation)

```
composer require andrei-stepanov/soapclient-transports
```

Quick Start
-----------

[](#quick-start)

### Basic Usage with PSR-18 Client

[](#basic-usage-with-psr-18-client)

```
