PHPackages                             cansozeri/php-soap-client - 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. cansozeri/php-soap-client

ActiveLibrary

cansozeri/php-soap-client
=========================

A PHP library for interpreting and binding SOAP messages to PSR-7 HTTP messages

v1.1.2(5y ago)1771MITPHPPHP ^7.2CI failing

Since Sep 12Pushed 5y ago1 watchersCompare

[ Source](https://github.com/cansozeri/php-soap-client)[ Packagist](https://packagist.org/packages/cansozeri/php-soap-client)[ Docs](https://github.com/cansozeri/php-soap-client)[ RSS](/packages/cansozeri-php-soap-client/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (4)Dependencies (13)Versions (5)Used By (0)

General purpose PHP SOAP-client
===============================

[](#general-purpose-php-soap-client)

This package aims to help you with interpreting and binding SOAP 1.1 and SOAP 1.2 messages to PSR-7 HTTP messages.

[![](https://camo.githubusercontent.com/83980621f479a31cffdc43165f5073e29a1f619fa0316d9596f1c42d3f82ffe7/68747470733a2f2f7472617669732d63692e636f6d2f63616e736f7a6572692f7068702d736f61702d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/github/cansozeri/php-soap-client)[![GitHub release (latest by date)](https://camo.githubusercontent.com/322cee3629e3cece6f364648300cca6a99fb7ba0c341f421d4f5dd53be0049fc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f63616e736f7a6572692f7068702d736f61702d636c69656e74)](https://packagist.org/packages/cansozeri/php-soap-client)[![GitHub](https://camo.githubusercontent.com/2e23caab69cfa7ad2ec4d06a544102b3b1a56438e56b4453f468602a546dfc7e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f63616e736f7a6572692f7068702d736f61702d636c69656e74)](https://packagist.org/packages/cansozeri/php-soap-client)

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

[](#installation)

```
$ composer require cansozeri/php-soap-client
```

Usage
-----

[](#usage)

#### SoapDriver

[](#soapdriver)

```
❗️ Make sure ext-soap is loaded.

```

This soap driver wraps PHPs ext-soap `\SoapClient` implementation.

- It abuses the `__doRequest()` method to make it possible to encode the request and decode the response.
- Metadata is being parsed based on the `__getTypes()` and `__getFunctions()` method.

**Example usage**

- You can use SoapEngine Trait to create a "Soap Service" Instance.

```
