PHPackages                             nhkey/yii2-soap - 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. [API Development](/categories/api)
4. /
5. nhkey/yii2-soap

ActiveYii2-extension[API Development](/categories/api)

nhkey/yii2-soap
===============

Yii2 wrapper for default SoapClient

1.0(9y ago)311.8k[1 issues](https://github.com/nhkey/yii2-soap/issues)MIT LicensePHP

Since Aug 23Pushed 9y ago3 watchersCompare

[ Source](https://github.com/nhkey/yii2-soap)[ Packagist](https://packagist.org/packages/nhkey/yii2-soap)[ RSS](/packages/nhkey-yii2-soap/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Yii2 SOAP Client
================

[](#yii2-soap-client)

This extension is wrapper for default SoapClient in PHP.

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

[](#installation)

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

Either run

```
php composer.phar require nhkey/yii2-soap "*"

```

or add

```
"nhkey/yii2-soap": "*"
```

to the require section of your composer.json.

Usage
-----

[](#usage)

You need add this extension in your config file in the 'components' section

```
'components' => [
    'soapClient' => [
        'class' => \nhkey\soap\SoapClientWrapper::className(),
        'url' => '',
        // SoapClient options
        'options' => [
            'cache_wsdl' => WSDL_CACHE_NONE,
            'debug' => true,
        ],
        // SopaClient headers, object or closure
        'headers' => function() {
            $headers = new stdClass();
            $headers->authDetails = new stdClass(); // This is node in SOAP Header where the login and password.
            $headers->authDetails->login = 'LOGIN';
            $headers->authDetails->password = 'PASSWORD';
            return $headers;
        }
    ],
    ...
]
```

Now you can use this extension, e.g.:

```
try {
    $soap = Yii::$app->soapClient;
    $result = $soap->makeSmb(['arg1' => 'foo', 'arg2' => 'bar']);
} catch (SoapClientWrapperException $e) {
    return ['request' => $soap->getLastRequest(), 'response' => $soap->getLastResponse()];
}
```

Credits
-------

[](#credits)

Author: Mikhail Mikhalev

Email:

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3549d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/102f95a21bd046c60c88ab13a88bfe7b044cbe65de6c546165297240cd516f2a?d=identicon)[nhkey](/maintainers/nhkey)

---

Top Contributors

[![nhkey](https://avatars.githubusercontent.com/u/2902589?v=4)](https://github.com/nhkey "nhkey (2 commits)")

---

Tags

soapyii2component

### Embed Badge

![Health badge](/badges/nhkey-yii2-soap/health.svg)

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

###  Alternatives

[mongosoft/yii2-soap-client

SOAP Client Extension for Yii 2

37404.9k](/packages/mongosoft-yii2-soap-client)[conquer/services

Yii2 soap wsdl web services

1632.5k](/packages/conquer-services)[skeeks/yii2-google-api

Component for work with google api based on google/apiclient

1243.1k1](/packages/skeeks-yii2-google-api)[apexwire/yii2-restclient

Tools to use API as ActiveRecord for Yii2

143.5k](/packages/apexwire-yii2-restclient)

PHPackages © 2026

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