PHPackages                             yii-diandi/yii2-soap-server - 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. yii-diandi/yii2-soap-server

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

yii-diandi/yii2-soap-server
===========================

SOAP Server Extension for Yii 2

07PHP

Since Jul 22Pushed 5y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

SOAP Server Extension for Yii 2
===============================

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

Note, PHP SOAP extension is required.

[![Latest Stable Version](https://camo.githubusercontent.com/ef4ae7304fb0468c238935ccab0e092c9c4f8a2618219586332cd7be2c47e0a3/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6e676f736f66742f796969322d736f61702d7365727665722f762f737461626c652e706e67)](https://packagist.org/packages/mongosoft/yii2-soap-server)[![Total Downloads](https://camo.githubusercontent.com/266ffe8d0cd26b600f3591b50f80ef533d348992bc0297899e8f5fac26d9d92d/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6e676f736f66742f796969322d736f61702d7365727665722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/mongosoft/yii2-soap-server)[![Build Status](https://camo.githubusercontent.com/505d43ef13d991bc08d62352016c63f767048889bf8e345d2ae6fe40ed7a9bdd/68747470733a2f2f7472617669732d63692e6f72672f6d6f6e676f736f66742f796969322d736f61702d7365727665722e706e67)](https://travis-ci.org/mongosoft/yii2-soap-server)

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-server "*"

```

or add

```
"yii-diandi/yii2-soap-server": "*"
```

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

Usage
-----

[](#usage)

You need to add \[\[diandi\\soapserver\\Action\]\] to web controller.

Note, In a service class, a remote invokable method must be a public method with a doc comment block containing the '@soap' tag.

```
class ApiController extends Controller
{
    /**
     * @inheritdoc
     */
    public function actions()
    {
        return [
            'hello' => 'diandi\soapserver\Action',
        ];
    }

    /**
     * @param string $name
     * @return string
     * @soap
     */
    public function getHello($name)
    {
        return 'Hello ' . $name;
    }
}
```

In case you want to disable the WSDL mode of SoapServer, you can specify this in the `serviceOptions` parameter as indicated below. You can use this when the request is to complex for the WSDL generator.

```
    /**
     * @inheritdoc
     */
    public function actions() {
        return [
            'index' => [
                'class' => 'diandi\soapserver\Action',
                'serviceOptions' => [
                    'disableWsdlMode' => true
                ]
            ]
        ];
    }
```

###  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 (3 commits)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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