PHPackages                             renova/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. [HTTP &amp; Networking](/categories/http)
4. /
5. renova/soap-client

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

renova/soap-client
==================

A general purpose SoapClient library

v1.4.1(5y ago)028MITPHPPHP ^7.3 || ^8.0

Since Jul 7Pushed 5y agoCompare

[ Source](https://github.com/alexey-renova/soap-client)[ Packagist](https://packagist.org/packages/renova/soap-client)[ RSS](/packages/renova-soap-client/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (31)Versions (48)Used By (0)

[![Build status](https://camo.githubusercontent.com/c34ebad2e3500a029c5e6d3dc26c31fac09c6595e4eaa35d613ebb766dabc441/68747470733a2f2f6170692e7472617669732d63692e6f72672f706870726f2f736f61702d636c69656e742e737667)](http://travis-ci.org/phpro/soap-client)[![Installs](https://camo.githubusercontent.com/cde57a4f8e4b9c89a31b455b771c55ce59dd2915f46db8d18aee1a4252bb0d87/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706870726f2f736f61702d636c69656e742e737667)](https://packagist.org/packages/phpro/soap-client/stats)[![Packagist](https://camo.githubusercontent.com/27149be3b3e8b35f79ab4ac5299f117c5756d759a08cfa99bcc90c5eddb689d8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706870726f2f736f61702d636c69656e742e737667)](https://packagist.org/packages/phpro/soap-client)

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

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

Sick and tired of building crappy SOAP implementations? This package aims to help you with some common SOAP integration pains in PHP. Its goal is to make integrating with SOAP fun again! Let's inspect some of the pains that are solved by this package:

Demo
====

[](#demo)

[![Soap Client demo](https://raw.githubusercontent.com/wiki/phpro/soap-client/soap-client-demo-fast.gif)](https://raw.githubusercontent.com/wiki/phpro/soap-client/soap-client-demo-fast.gif)

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

[](#installation)

```
$ composer require phpro/soap-client
```

Scafolding Wizard
-----------------

[](#scafolding-wizard)

Since life is too short to read documentation, we've added a scafolding wizard which will get you communicating with your SOAP server in no time! All you need to do is:

```
composer require --dev zendframework/zend-code:^3.1.0
./vendor/bin/soap-client wizard
```

You can customize the generated code based on the manual installation pages in the next chapter.

Getting your SOAP integration up and running
--------------------------------------------

[](#getting-your-soap-integration-up-and-running)

1. [Create your own SOAP client.](docs/client.md)
2. [Generate PHP classes based on SOAP types.](docs/cli/generate-types.md)
3. [Generate a class map](docs/cli/generate-classmap.md)
4. [Generate your own SOAP client.](docs/cli/generate-client.md)
5. [Generate a client factory.](docs/cli/generate-clientfactory.md)
6. [Use your SOAP client.](docs/usage.md)
7. [Test your SOAP client.](docs/testing.md)

Advanced configuration
----------------------

[](#advanced-configuration)

- [Add type converters.](docs/type-converter.md)
- [Listen to events.](docs/events.md)
    - [Logger Subscriber](docs/event-subscribers/logger.md)
    - [Validator Subscriber](docs/event-subscribers/validator.md)
    - [Caching Subscriber](docs/event-subscribers/caching.md)
- [Get in control of the soap-client](docs/engine.md)
    - [Choose a driver](docs/engine.md#driver)
        - [ExtSoapDriver](docs/drivers/ext-soap.md)
        - [Create your own driver](docs/drivers/new.md)
    - [Specify your HTTP handler.](docs/engine.md#handler)
        - [HttPlugHandle](docs/handlers/httplug.md) (Supports [middlewares](docs/middlewares.md))
        - [ExtSoapClientHandle](docs/handlers/ext-soap/client.md)
        - [ExtSoapServerHandle](docs/handlers/ext-soap/local-server.md)
        - [Create your own handler](docs/handlers/new.md)
- [Configure one or multiple HTTP middlewares.](docs/middlewares.md)
    - [BasicAuthMiddleware](docs/middlewares.md#basicauthmiddleware)
    - [NtlmMiddleware](docs/middlewares.md#ntlmmiddleware)
    - [WsaMiddleware](docs/middlewares.md#wsamiddleware)
    - [WsseMiddleware](docs/middlewares.md#wssemiddleware)
    - [Create your own middleware](docs/middlewares.md#creating-your-own-middleware)
- [Select a WSDL Provider](docs/wsdl-providers.md)

Customize the code generation
-----------------------------

[](#customize-the-code-generation)

- [Configuration](docs/code-generation/configuration.md)
- [Specify generation `Rules`](docs/code-generation/rules.md)
- [Generate code through `Assemblers`](docs/code-generation/assemblers.md)

Known issues
------------

[](#known-issues)

- [ext-soap](docs/known-issues/ext-soap.md)

Why this soap client was made
=============================

[](#why-this-soap-client-was-made)

By default, the SoapClient works with a mix of arrays, stdClasses and other scalar types. This is not a good practice in a modern OOP world because:

- It makes your code hard to test.
- It breaks Code Completion
- It is hard to track changes in the response and request objects.
- The content of a result is never explicit.

To solve the above problems, this package will force you into using Value-objects for Requests and Responses. We know that maintaining these value-objects can be a load of work. No worries! There are some commandline tools available that will help you with generating a good base to start with. Because the SoapClient will need a classmap of WSDL to PHP Classes, there is also a classmap generator available. This will surely safe you a lot of time! By adding SOAP type converters, it is possible to transform the values of a specific SOAP type from/to a PHP type. The package comes included with some basic transformers for date and datetime. On, top of that, it is very easy to create your own transformers.

Another problem is that the native SoapClient works with a lot of magic methods. It is hard to debug these magic methods hence there is no code completion. Both SOAP and implementation methods are on the same object.

This package will force you into wrapping a SoapClient into your own Client. You can choose to only expose the methods you need. It will always be clear to the developer what's in your client, how it works and what it returns. We even provided a base Client for you to use with some common used methods for debugging, authentication and an event system.

In lots of SOAP integrations, the logging, caching and Soap calls are in the same method. This makes your code hard to read and dependent on other classes / packages.

Creating a great OO SOAP client means that you'll have to create a lot of code. This can be a tedious task which can be automated. That is why we've added the tools to automatically generate the SOAP objects from the XSD scheme inside the WSDL. It is even possible to specify your own code-generation rules and code assemblers or use one of our many built-in classes.

It is important keep your code clean. Therefore, we added an event-listener to your Soap client. You can hook in at every important step of the SOAP flow. This way it is possible to add logging, validation, caching and error handling with event subscribers. Pretty cool right?!

Implementing SOAP extensions is a real pain in the ass. It forces you to overwrite core methods of the built-in SOAP client. If you ever had to implement WSA or WSSE in SOAP, you know that there is something wrong in the core. Therefore, we made it easy for you to extend our SOAP client. You can specify which data transfer handler like e.g. Guzzle you want to use. Depending on the selected handler, you can easily add support for SOAP extensions or advanced authentication through HTTP middlewares.

Dealing with ext-soap is not for all developers. There are some nasty quirks you need to know about. Therefor, we made it possible for you to use which ever driver you want to use. By default we will still ship an ext-soap driver, but it is completely opt-in. You can use any user-land SoapClient implementation if you wrap it in our own driver interfaces.

Testing webservices is hard! That is Why this package is fully compatible with [php-vcr](http://php-vcr.github.io/). Testing your SOAP client will be very fast and without any errors at the 3th party side of the integration.

Last but not least, we want to make it easy for you to configure your SoapClient. That is why we included a generated ClientFactory on which you can configure your custom Client. You want some other settings during development and in production? No problem! Sit back and let the factory handle your Client initialisation.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 56.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~44 days

Recently: every ~36 days

Total

47

Last Release

1963d ago

Major Versions

0.7.11 → v1.0.02019-02-22

PHP version history (4 changes)v0.3.0PHP ^7.0

v1.0.0PHP ^7.1

v1.1.0PHP ^7.2

v1.4.0PHP ^7.3 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/384c5919876512ccec4cd04fe47b2af636c194768c9ee810baeefa5eddebc283?d=identicon)[alexey-renova](/maintainers/alexey-renova)

---

Top Contributors

[![veewee](https://avatars.githubusercontent.com/u/1618158?v=4)](https://github.com/veewee "veewee (285 commits)")[![janvernieuwe](https://avatars.githubusercontent.com/u/7813447?v=4)](https://github.com/janvernieuwe "janvernieuwe (159 commits)")[![igorsantos07](https://avatars.githubusercontent.com/u/532299?v=4)](https://github.com/igorsantos07 "igorsantos07 (8 commits)")[![Livda](https://avatars.githubusercontent.com/u/9930567?v=4)](https://github.com/Livda "Livda (5 commits)")[![joshhornby](https://avatars.githubusercontent.com/u/5455767?v=4)](https://github.com/joshhornby "joshhornby (5 commits)")[![marek-pietrzak-tg](https://avatars.githubusercontent.com/u/2435655?v=4)](https://github.com/marek-pietrzak-tg "marek-pietrzak-tg (5 commits)")[![MidnightDesign](https://avatars.githubusercontent.com/u/743172?v=4)](https://github.com/MidnightDesign "MidnightDesign (4 commits)")[![lukastaferner](https://avatars.githubusercontent.com/u/16412576?v=4)](https://github.com/lukastaferner "lukastaferner (4 commits)")[![alexey-renova](https://avatars.githubusercontent.com/u/79089277?v=4)](https://github.com/alexey-renova "alexey-renova (4 commits)")[![tombevers](https://avatars.githubusercontent.com/u/145226?v=4)](https://github.com/tombevers "tombevers (3 commits)")[![HKandulla](https://avatars.githubusercontent.com/u/489901?v=4)](https://github.com/HKandulla "HKandulla (2 commits)")[![GaryJones](https://avatars.githubusercontent.com/u/88371?v=4)](https://github.com/GaryJones "GaryJones (2 commits)")[![jurbar](https://avatars.githubusercontent.com/u/29779659?v=4)](https://github.com/jurbar "jurbar (2 commits)")[![kostajh](https://avatars.githubusercontent.com/u/208893?v=4)](https://github.com/kostajh "kostajh (2 commits)")[![samvdb](https://avatars.githubusercontent.com/u/632452?v=4)](https://github.com/samvdb "samvdb (2 commits)")[![schlessera](https://avatars.githubusercontent.com/u/83631?v=4)](https://github.com/schlessera "schlessera (2 commits)")[![geoffreytran](https://avatars.githubusercontent.com/u/544500?v=4)](https://github.com/geoffreytran "geoffreytran (2 commits)")[![icanhazstring](https://avatars.githubusercontent.com/u/883543?v=4)](https://github.com/icanhazstring "icanhazstring (2 commits)")[![ro0NL](https://avatars.githubusercontent.com/u/1047696?v=4)](https://github.com/ro0NL "ro0NL (1 commits)")[![Smolevich](https://avatars.githubusercontent.com/u/7188867?v=4)](https://github.com/Smolevich "Smolevich (1 commits)")

---

Tags

soap

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/renova-soap-client/health.svg)

```
[![Health](https://phpackages.com/badges/renova-soap-client/health.svg)](https://phpackages.com/packages/renova-soap-client)
```

###  Alternatives

[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M568](/packages/shopware-core)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M418](/packages/drupal-core-recommended)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M733](/packages/sylius-sylius)[phpro/soap-client

A general purpose SoapClient library

8896.1M54](/packages/phpro-soap-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
