PHPackages                             radomirradojevic/yii2-wss-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. radomirradojevic/yii2-wss-soap

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

radomirradojevic/yii2-wss-soap
==============================

Yii2 wrapper for default SoapClient

1.0(6y ago)13571MITPHP

Since May 16Pushed 6y ago1 watchersCompare

[ Source](https://github.com/radomirradojevic/yii2-wss-soap)[ Packagist](https://packagist.org/packages/radomirradojevic/yii2-wss-soap)[ RSS](/packages/radomirradojevic-yii2-wss-soap/feed)WikiDiscussions master Synced yesterday

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

Yii2 SOAP Client with WS-Security Header support
================================================

[](#yii2-soap-client-with-ws-security-header-support)

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

```
composer require radomirradojevic/yii2-wss-soap "1.0"

```

or add

```
"radomirradojevic/yii2-wss-soap": "1.0"
```

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' => \radomirradojevic\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->wss_ns = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd';
            $headers->authDetails->login = '';
            $headers->authDetails->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()];
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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

2553d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fff8e2b1cb3f7bf588b2f5a8772ab6114c69a0f4bbfe9cb1ce925fd457e62797?d=identicon)[radomirradojevic](/maintainers/radomirradojevic)

---

Top Contributors

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

---

Tags

soapcomponentyii2-wss

### Embed Badge

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

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

###  Alternatives

[laminas/laminas-soap

6121.8M37](/packages/laminas-laminas-soap)[gusapi/gusapi

Gus Api Library for PHP

1351.5M8](/packages/gusapi-gusapi)[codedredd/laravel-soap

A SoapClient wrapper integration for Laravel

221516.6k3](/packages/codedredd-laravel-soap)[besimple/soap-client

Build and consume SOAP Client based web services

582.2M14](/packages/besimple-soap-client)[mongosoft/yii2-soap-client

SOAP Client Extension for Yii 2

37404.9k](/packages/mongosoft-yii2-soap-client)[besimple/soap-common

Build and consume SOAP Common based web services

122.4M8](/packages/besimple-soap-common)

PHPackages © 2026

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