PHPackages                             yii-diandi/yii2-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. yii-diandi/yii2-soap-client

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

yii-diandi/yii2-soap-client
===========================

SOAP Client Extension for Yii 2

09PHP

Since Jul 22Pushed 5y agoCompare

[ Source](https://github.com/yii-diandi/yii2-soap-client)[ Packagist](https://packagist.org/packages/yii-diandi/yii2-soap-client)[ RSS](/packages/yii-diandi-yii2-soap-client/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

SOAP Client Extension for Yii 2
===============================

[](#soap-client-extension-for-yii-2)

Note, PHP SOAP extension is required.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require --prefer-dist yii-diandi/yii2-soap-client "*"

```

or add

```
"diandi/yii2-soap-client": "*"
```

to the `require` section of your `composer.json` file.

Usage
-----

[](#usage)

You need to setup soap client application component:

```
'components' => [
    'siteApi' => [
        'class' => 'diandi\soapclient\Client',
        'url' => 'http://myservice.com/api/hello',
        'options' => [
            'cache_wsdl' => WSDL_CACHE_NONE,
        ],
    ]
    ...
]
```

or define the client directly in the code:

```
$client = new \diandi\soapclient\Client([
    'url' => 'http://myservice.com/api/hello',
]);
```

Example of calling the SOAP function:

```
$client = Yii::$app->siteApi;
echo $client->getHello('Alex');
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/46cef84bc40d75ea2a86c1746f139764841f3d133d34d951bf78ea39faffaa20?d=identicon)[wangchunsheng](/maintainers/wangchunsheng)

---

Top Contributors

[![yii-diandi](https://avatars.githubusercontent.com/u/34767187?v=4)](https://github.com/yii-diandi "yii-diandi (2 commits)")

### Embed Badge

![Health badge](/badges/yii-diandi-yii2-soap-client/health.svg)

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

###  Alternatives

[camspiers/statistical-classifier

A PHP implementation of Complement Naive Bayes and SVM statistical classifiers, including a structure for building other classifier, multiple data sources and multiple caching backends

17237.0k1](/packages/camspiers-statistical-classifier)[humanmade/page-for-post-type

Allows you to set pages for any custom post type archive

18810.2k](/packages/humanmade-page-for-post-type)

PHPackages © 2026

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